Closed arichiardi closed 7 years ago
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.
I don't know why this hasn't been spotted before but I like the solution. Thanks!
A problem with cut was causing:
The fix uses a regex instead so that we trim away things correctly. It also seems somewhat more readable.