From 61030f1c18f84df5d068166288ccd5cf4b3a5d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gross?= Date: Tue, 19 Jun 2012 10:55:50 +0200 Subject: [PATCH] Remove local variables statements. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Gross --- conf/type/__user/gencode-remote | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/conf/type/__user/gencode-remote b/conf/type/__user/gencode-remote index 5a868b67..7e175f60 100755 --- a/conf/type/__user/gencode-remote +++ b/conf/type/__user/gencode-remote @@ -28,7 +28,7 @@ name="$__object_id" # systems (such as *BSD, Darwin) those commands do not handle GNU style long # options. shorten_property() { - local ret="" + unset ret case "$1" in comment) ret="-c";; home) ret="-d";; @@ -84,8 +84,7 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then fi if [ "$new_value" != "$current_value" ]; then - local option=$(shorten_property $property) - set -- "$@" "$option" \'$new_value\' + set -- "$@" "$(shorten_property $property)" \'$new_value\' fi done @@ -97,8 +96,7 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then else for property in $(ls .); do new_value="$(cat "$property")" - local option=$(shorten_property $property) - set -- "$@" "$option" \'$new_value\' + set -- "$@" "$(shorten_property $property)" \'$new_value\' done echo useradd "$@" "$name"