Skip to content

Commit

Permalink
Google Drive bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fsantini committed Apr 24, 2019
1 parent 8c252b9 commit f4e5488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/usr/local/kobocloud/getGDriveFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ grep -Eo "\\\x5b\\\x22[^\\\]*\\\x22,\\\x5b\\\x22$gDirCode\\\x22\\\x5d\\\n,\\\x22
while read fileInfo
do
echo $fileInfo
fileCode=`echo $fileInfo | sed -n 's/x5bx22\([a-zA-Z0-9]*\)x22,.*/\1/p'` # extract the code for file download (this is how a file is identified in GDrive)
fileCode=`echo $fileInfo | sed -n 's/x5bx22\([^\\\]*\)x22,.*/\1/p'` # extract the code for file download (this is how a file is identified in GDrive)
fileName=`echo $fileInfo | sed -n 's/.*x22\(.*\)$/\1/p'` # extract the file name
echo $fileCode
echo $fileName
Expand Down
2 changes: 1 addition & 1 deletion src/usr/local/kobocloud/getRemoteFile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
localSize=0
fi
if [ "$remoteSize" = "" ]; then
remoteSize=0
remoteSize=1
fi
if [ $localSize -ge $remoteSize ]; then
echo "File exists: skipping"
Expand Down

0 comments on commit f4e5488

Please sign in to comment.