Remove local variables statements.

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
This commit is contained in:
Sébastien Gross 2012-06-19 10:55:50 +02:00
parent d591b5f2be
commit 61030f1c18
1 changed files with 3 additions and 5 deletions

View File

@ -28,7 +28,7 @@ name="$__object_id"
# systems (such as *BSD, Darwin) those commands do not handle GNU style long # systems (such as *BSD, Darwin) those commands do not handle GNU style long
# options. # options.
shorten_property() { shorten_property() {
local ret="" unset ret
case "$1" in case "$1" in
comment) ret="-c";; comment) ret="-c";;
home) ret="-d";; home) ret="-d";;
@ -84,8 +84,7 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then
fi fi
if [ "$new_value" != "$current_value" ]; then if [ "$new_value" != "$current_value" ]; then
local option=$(shorten_property $property) set -- "$@" "$(shorten_property $property)" \'$new_value\'
set -- "$@" "$option" \'$new_value\'
fi fi
done done
@ -97,8 +96,7 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then
else else
for property in $(ls .); do for property in $(ls .); do
new_value="$(cat "$property")" new_value="$(cat "$property")"
local option=$(shorten_property $property) set -- "$@" "$(shorten_property $property)" \'$new_value\'
set -- "$@" "$option" \'$new_value\'
done done
echo useradd "$@" "$name" echo useradd "$@" "$name"