aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-09-14 18:43:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-09-14 18:43:54 -0300
commitb9e16e312fc1af7067d5d4e045cf2a40fd648038 (patch)
treef7a4320868fa72e2d81847ae6232be072bcee413
parente5beb1476a7228563b4c182e06b5f6fd793bcf3d (diff)
downloadplaylister-b9e16e312fc1af7067d5d4e045cf2a40fd648038.tar.gz
playlister-b9e16e312fc1af7067d5d4e045cf2a40fd648038.tar.bz2
Fix: playlist get: properly quote paths to take spaces into accountHEADmaster
-rwxr-xr-xplaylist-get4
1 files changed, 2 insertions, 2 deletions
diff --git a/playlist-get b/playlist-get
index 661eac9..947b8b2 100755
--- a/playlist-get
+++ b/playlist-get
@@ -45,7 +45,7 @@ elif [ "$BASENAME" == "playlist-copy" ]; then
action=""
# Force absolute path
- DEST="`cd $DEST && pwd`"
+ DEST="`cd "$DEST" && pwd`"
elif [ "$DEST" == "adb" ]; then
APP="adb"
action="push"
@@ -83,7 +83,7 @@ done
# Additional procedures
if [ "$action" != "get" ]; then
# Copy the playlist to the destination
- $APP $action "$PLAYLISTS/$PLAYLIST.m3u" $DEST/$PLAYLIST.m3u
+ $APP $action "$PLAYLISTS/$PLAYLIST.m3u" "$DEST/$PLAYLIST.m3u"
# Refresh file list at the destination
if [ "$APP" == "adb" ]; then