Fixed stupid error that prevented -m and -u to work without -e
authorvimacs <vimacs@pndtest>
Mon, 9 Nov 2009 21:34:15 +0000 (22:34 +0100)
committervimacs <vimacs@pndtest>
Mon, 9 Nov 2009 21:34:15 +0000 (22:34 +0100)
modified:   pnd_run.sh

testdata/scripts/pnd_run.sh

index a55f548..e95f033 100755 (executable)
@@ -51,7 +51,7 @@ if [ ! $PND ]; then #check if theres a pnd suplied, need to clean that up a bit
        exit 1
 fi
 if [ ! $EXENAME ]; then
-       if [ ! $mount ] || [ ! $umount ]; then
+       if [ ! $mount ] && [ ! $umount ]; then
                echo "Usage: pnd_run.sh -p your.pnd -e executeable [-a \"(arguments)\"] [ -s \"cd to folder inside pnd\"] [-b UID (name of mountpoint/pandora/appdata)] [-x close x before launching(script needs to be started with nohup for this to work]"
                echo "Usage for mounting/umounting pnd_run.sh -p your.pnd -b uid -m or -u"
                exit 1