diff mbox

[OSSTEST,1/2] mg-debian-installer-update: Allow optional suite argument

Message ID 1465393351-32268-1-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson June 8, 2016, 1:42 p.m. UTC
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 mg-debian-installer-update-all |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/mg-debian-installer-update-all b/mg-debian-installer-update-all
index 4e76a69..d88ebf5 100755
--- a/mg-debian-installer-update-all
+++ b/mg-debian-installer-update-all
@@ -1,6 +1,6 @@ 
 #!/bin/bash
 # usage
-#   ./mg-debian-installer-update-all
+#   ./mg-debian-installer-update-all [<suite>]
 
 # This is part of "osstest", an automated testing framework for Xen.
 # Copyright (C) 2015 Citrix Inc.
@@ -22,7 +22,11 @@  set -e -o posix
 
 . ./cri-getconfig
 
-suite=`getconfig DebianSuite`
+suite=$1
+if [ "x$suite" = x ]; then
+    suite=`getconfig DebianSuite`
+fi
+
 fws=`getconfig DebianNonfreeFirmware`
 arches="arm64 armhf amd64 i386"