Merge pull request #98 from jimmyjones2/patch-1

Support space in directory
This commit is contained in:
Jakob Borg
2015-12-30 15:42:32 +01:00
+2 -1
View File
@@ -100,7 +100,8 @@ the following script and store it as ``/Users/jb/bin/onlylatest.sh`` (i.e. the
filepath="$2"
# First ensure the dir where we need to store the file exists
mkdir -p `dirname "$versionspath/$filepath"`
outpath=`dirname "$versionspath/$filepath"`
mkdir -p "$outpath"
# Then move the file there
mv -f "$folderpath/$filepath" "$versionspath/$filepath"