From 2ab5a609068074e70e7e48d6f6519baf65ac8150 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Fri, 9 Nov 2018 17:42:47 -0500 Subject: [PATCH] Shellcheck pass on edit_password in ftpadmin Removed useless echo and used proper variable quoting. --- scripts/ftpadmin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ftpadmin.sh b/scripts/ftpadmin.sh index 76b43c5..e705810 100755 --- a/scripts/ftpadmin.sh +++ b/scripts/ftpadmin.sh @@ -105,7 +105,7 @@ edit_password() { account_name=$1 passwd=$2 - echo `echo $passwd | ftpasswd --passwd --file=$VPASSWD_PATH --name=$account_name --uid=9999 --gid=9999 --home=/dev/null --shell=/dev/null --change-password --stdin` + echo "$passwd" | ftpasswd --passwd --file="$VPASSWD_PATH" --name="$account_name" --uid=9999 --gid=9999 --home=/dev/null --shell=/dev/null --change-password --stdin }