s3-selftest use a more portable shell syntax
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Sep 2011 05:19:46 +0000 (15:19 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 13 Sep 2011 07:34:49 +0000 (09:34 +0200)
"$10" evaulates to $1 and 0, not the 10th argument.

Thanks to Amitay for pointing this out!

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Sep 13 09:34:49 CEST 2011 on sn-devel-104

source3/script/tests/test_smbclient_s3.sh

index d2c504908bd7fa679c5ec111aaa8ae823d6e0a44..3341c62f4b98eac4d1b72f861f8dfd4cd9b108b3 100755 (executable)
@@ -9,16 +9,16 @@ EOF
 exit 1;
 fi
 
-SERVER="$1"
-SERVER_IP="$2"
-DOMAIN="$3"
-USERNAME="$4"
-PASSWORD="$5"
-USERID="$6"
-LOCAL_PATH="$7"
-PREFIX="$8"
-SMBCLIENT="$9"
-WBINFO="$10"
+SERVER="${1}"
+SERVER_IP="${2}"
+DOMAIN="${3}"
+USERNAME="${4}"
+PASSWORD="${5}"
+USERID="${6}"
+LOCAL_PATH="${7}"
+PREFIX="${8}"
+SMBCLIENT="${9}"
+WBINFO="${10}"
 SMBCLIENT="$VALGRIND ${SMBCLIENT}"
 WBINFO="$VALGRIND ${WBINFO}"
 shift 10