Merge pull request #168 from arichiardi/fix-file-dest
Use regex for trimming file:// destinations
This commit is contained in:
commit
e070ca7887
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue