mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Support passwords with spaces
You must quote $2 in order to support passwords with spaces.
This commit is contained in:
@@ -12,5 +12,5 @@ if [ -z "$2" ]; then
|
||||
htpasswd -B $PASSWORD_FILE $1
|
||||
else
|
||||
# read password from command line
|
||||
htpasswd -B -b $PASSWORD_FILE $1 $2
|
||||
htpasswd -B -b $PASSWORD_FILE $1 "$2"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user