diff --git a/scripts/install b/scripts/install index febf1af..800bd06 100644 --- a/scripts/install +++ b/scripts/install @@ -13,6 +13,10 @@ fi # Remove trailing "/" for next commands path=${path%/} +if [ -z "$path" ]; then + 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')