Merge pull request #1 from arno01/master

patch
This commit is contained in:
Robert Jäckel 2016-07-21 00:14:42 +02:00 committed by GitHub
commit d1cb5a5ac9

View File

@ -145,10 +145,10 @@ function decryptFile() {
} }
# Get a username from the path (arg1) # 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) # 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 if [ ! -r "$USER" ]; then
echo "User directory cannot be found! Are you sure you are in ownCloud's data directory?" echo "User directory cannot be found! Are you sure you are in ownCloud's data directory?"