Skip to content

Commit

Permalink
Merge pull request #168 from arichiardi/fix-file-dest
Browse files Browse the repository at this point in the history
Use regex for trimming file:// destinations
  • Loading branch information
zertrin committed Nov 14, 2017
2 parents 5a023c3 + 6377ad5 commit e070ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duplicity-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e070ca7

Please sign in to comment.