action=""
# Force absolute path
- DEST="`cd $DEST && pwd`"
+ DEST="`cd "$DEST" && pwd`"
elif [ "$DEST" == "adb" ]; then
APP="adb"
action="push"
# 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