Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use regex for trimming file:// destinations
A problem with cut was causing: $ DEST="file:///media/user/data" $ TMPDEST=$(echo "${DEST}" | cut -c 6-) $ echo $TMPDEST ///media/user/data The fix uses a regex instead so that we trim away things correctly. It also seems somewhat more readable.
- Loading branch information