Small fixes
This commit is contained in:
parent
c53cb9cccd
commit
0132191680
1
nginxd
1
nginxd
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue