Shellcheck pass on edit_password in ftpadmin

Removed useless echo and used proper variable quoting.
This commit is contained in:
Patrick Marchand 2018-11-09 17:42:47 -05:00
parent 66c2c8ab35
commit 2ab5a60906
1 changed files with 1 additions and 1 deletions

View File

@ -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
}