From 200a6cc96037786b7b12ab0dbdb1143ed680891b Mon Sep 17 00:00:00 2001 From: titoko titoko Date: Fri, 29 Nov 2013 18:27:42 +0100 Subject: [PATCH] remove / --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 6418625..20ffbb9 100644 --- a/scripts/install +++ b/scripts/install @@ -10,6 +10,9 @@ 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') db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')