From 0132191680443996aa7dc8a7be59a0157d78ac9a Mon Sep 17 00:00:00 2001 From: Stephen Cochrane Date: Thu, 15 Oct 2020 09:53:19 +0200 Subject: [PATCH] Small fixes --- nginxd | 1 + 1 file changed, 1 insertion(+) diff --git a/nginxd b/nginxd index 5b02bca..8c9df52 100755 --- a/nginxd +++ b/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 \