mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Support passwords with spaces
You must quote $2 in order to support passwords with spaces.
This commit is contained in:
parent
f053e33486
commit
4f17744d6c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue