Small fixes

This commit is contained in:
Stephen Cochrane 2020-10-15 09:53:19 +02:00
parent c53cb9cccd
commit 0132191680
1 changed files with 1 additions and 0 deletions

1
nginxd
View File

@ -52,6 +52,7 @@ done
# Available units
units=( git blog wiki irc proj all )
unitsd=${unitsd:="./units"}
unitsd=$(echo $unitsd | sed 's:/*$::') # Remove trailing slash
# Check that a valid unit was given.
[[ ! " ${units[@]} " =~ " ${unit} " ]] && error "The unit <$unit> does not exist." 1 \