s3:test: make shell code more porable by elimnating "local" keyword
authorBjörn Jacke <bj@sernet.de>
Mon, 25 Jun 2012 15:12:35 +0000 (17:12 +0200)
committerBjoern Jacke <bj@sernet.de>
Mon, 25 Jun 2012 17:02:13 +0000 (19:02 +0200)
don't use "local". That is BASH only.

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Mon Jun 25 19:02:13 CEST 2012 on sn-devel-104

source3/script/tests/test_net_registry_roundtrip.sh

index 050311a81448bf741d37028bfc58b8f36dcb5706..f2158879e36583aab177dd22a4681ebca5ac46ba 100755 (executable)
@@ -66,9 +66,9 @@ conf_roundtrip_step() {
 LOGDIR_PREFIX="conf_roundtrip"
 
 conf_roundtrip()
-{
-    local DIR=$(mktemp -d ${PREFIX}/${LOGDIR_PREFIX}_XXXXXX)
-    local LOG=$DIR/log
+(
+    DIR=$(mktemp -d ${PREFIX}/${LOGDIR_PREFIX}_XXXXXX)
+    LOG=$DIR/log
 
     echo conf_roundtrip $1 > $LOG
 
@@ -144,7 +144,7 @@ conf_roundtrip()
        return 1
     fi
     rm -r $DIR
-}
+)
 
 CONF_FILES=$SERVERCONFFILE