aboutsummaryrefslogtreecommitdiff
path: root/bin/playlist
diff options
context:
space:
mode:
Diffstat (limited to 'bin/playlist')
-rwxr-xr-xbin/playlist4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/playlist b/bin/playlist
index bfb609e..0c29169 100755
--- a/bin/playlist
+++ b/bin/playlist
@@ -75,7 +75,7 @@ F="$XDG_DATA_HOME"/euandreh/playlist.txt
prompt() {
ENTRY="$(zenity --text 'URL of the video to enqueue:' --entry ||:)"
if [ -n "$ENTRY" ]; then
- echo "$ENTRY" >> "$F"
+ printf '%s\n' "$ENTRY" >> "$F"
fi
}
@@ -85,7 +85,7 @@ run() {
return
fi
mpv "$next"
- echo "$next" >> "queue.$F"
+ printf '%s\n' "$next" >> "queue.$F"
tail -n+2 "$F" | sponge "$F"
}