]> gitweb.fluxo.info Git - playlister.git/commitdiff
Fix: playlist get: properly quote paths to take spaces into account master
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 14 Sep 2024 21:43:54 +0000 (18:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 14 Sep 2024 21:43:54 +0000 (18:43 -0300)
playlist-get

index 661eac910c64beb89d2b54edd4ad42630d27a5e9..947b8b2ce08490499fc024b2273ae54599dae435 100755 (executable)
@@ -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