Not a breath without wget ;-)
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 5 Mar 2012 12:32:30 +0000 (12:32 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 5 Mar 2012 12:32:30 +0000 (12:32 +0000)
org.glite.testsuites.ctb/PX/tests/px-autonomous-test.sh

index 5571f02..0899448 100755 (executable)
@@ -39,6 +39,17 @@ EndHelpHeader
 
 STARTTIME=`date +%s`
 
+egrep -i "Debian|Ubuntu" /etc/issue
+if [ \$? = 0 ]; then
+        INSTALLCMD="apt-get install -q --yes"
+        INSTALLPKGS="lintian"
+else
+        INSTALLCMD="yum install -q -y --nogpgcheck"
+        INSTALLPKGS="rpmlint"
+fi
+
+$INSTALLCMD wget
+
 # read common definitions and functions
 for COMMON in px-common.sh test-common.sh px-common-testbeds.sh
 do