From 4dccc55487cb7e078cfd6d7f57a14d25fa830fb9 Mon Sep 17 00:00:00 2001 From: titoko Date: Mon, 9 Dec 2013 16:32:17 +0100 Subject: [PATCH] Update install --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) 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')