diff --git a/scripts/install b/scripts/install index 20ffbb9..74fb029 100644 --- a/scripts/install +++ b/scripts/install @@ -11,7 +11,9 @@ exit 1 fi # Remove trailing "/" for next commands +if [ "$path" != "/" ]; then path=${path%/} +fi # Generate random DES key & password deskey=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')