diff options
author | Björn Jacke <bj@sernet.de> | 2012-06-25 21:21:31 +0200 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2012-06-26 18:06:12 +0200 |
commit | 8ee76b173baaca3fc392116622eb1bb7e584526b (patch) | |
tree | 36096ec60bf866b88996f5addd0ef255c5b93144 /source3/script | |
parent | 98ec5e95ca726c10c9e0f2c4f151308279c8bed5 (diff) | |
download | samba-8ee76b173baaca3fc392116622eb1bb7e584526b.tar.gz samba-8ee76b173baaca3fc392116622eb1bb7e584526b.tar.bz2 samba-8ee76b173baaca3fc392116622eb1bb7e584526b.zip |
s3:test_registry_upgrade: make more portable and eliminate "local" keyword
prefer to use function syntax with (...) to make variables local
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/tests/test_registry_upgrade.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/script/tests/test_registry_upgrade.sh b/source3/script/tests/test_registry_upgrade.sh index 8e012bf983..4e97153fec 100755 --- a/source3/script/tests/test_registry_upgrade.sh +++ b/source3/script/tests/test_registry_upgrade.sh @@ -31,11 +31,11 @@ REGPATH="HKLM\Software\Samba" LOGDIR_PREFIX="registry_upgrade" registry_check() -{ - local CHECKNO="$1" - local CHECKDIFF="$2" - local REGVER="" - local ALLOWEDERR="INFO: version =|Check database:|overwrite registry format version 0 with 1|no INFO/version found" +( + CHECKNO="$1" + CHECKDIFF="$2" + REGVER="" + ALLOWEDERR="INFO: version =|Check database:|overwrite registry format version 0 with 1|no INFO/version found" test "x$CHECKNO" = "x0" && { REGVER="--reg-version=1" @@ -71,7 +71,7 @@ registry_check() } return 0 -} +) registry_upgrade() { |