mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:test_registry_upgrade: make more portable and eliminate "local" keyword
prefer to use function syntax with (...) to make variables local
This commit is contained in:
parent
98ec5e95ca
commit
8ee76b173b
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user