From 1375e666070721bac86150a14fadf8556013572a Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sun, 7 Feb 2016 10:18:50 +0100 Subject: [PATCH] fixed path problem --- ocdec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocdec.sh b/ocdec.sh index 863773f..fa4cceb 100755 --- a/ocdec.sh +++ b/ocdec.sh @@ -144,10 +144,10 @@ function decryptFile() { } # Get a username from the path (arg1) -USER="$(echo $1 |cut -sd / -f 1)" +USER="$(echo "$1" |cut -sd / -f 1)" # Strip off the username from the path (arg1) -FILETD="$(echo $1 |cut -sd / -f 2-)" +FILETD="$(echo "$1" |cut -sd / -f 2-)" if [ ! -r "$USER" ]; then echo "User directory cannot be found! Are you sure you are in ownCloud's data directory?"