From 47cd0867588da90be4b7dec041ac54bc8ba03db2 Mon Sep 17 00:00:00 2001 From: titoko Date: Fri, 29 Nov 2013 19:49:58 +0100 Subject: [PATCH] Update install --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 79c1be3..20ffbb9 100644 --- a/scripts/install +++ b/scripts/install @@ -10,6 +10,8 @@ if [[ ! $? -eq 0 ]]; then exit 1 fi +# Remove trailing "/" for next commands +path=${path%/} # 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')