Merge pull request #168 from arichiardi/fix-file-dest

Use regex for trimming file:// destinations
This commit is contained in:
zertrin 2017-11-14 22:34:33 +08:00 committed by GitHub
commit e070ca7887
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -660,7 +660,7 @@ get_remote_file_size()
;;
"fi")
FRIENDLY_TYPE_NAME="File"
TMPDEST=$(echo "${DEST}" | cut -c 6-)
TMPDEST="${DEST#file://*}"
SIZE=$(du -hs "${TMPDEST}" | awk '{print $1}')
;;
"gs")