summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xar/.local/bin/qndl2
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl
index a481c27..2907e76 100755
--- a/ar/.local/bin/qndl
+++ b/ar/.local/bin/qndl
@@ -113,7 +113,7 @@ done
# Enqueue the download task with tsp
FILENAME=$($SIMULATION_CMD 2>/dev/null)
-rm -rf /tmp/qplaylist
+[ -f /tmp/qplaylist ] && rm -rf /tmp/qplaylist
notify-send "⏳ Downloading $DOWNLOAD_TYPE:" "$FILENAME"
idnum=$(tsp bash -c "$YTDL_CMD")
pkill -RTMIN+21 "${STATUSBAR:-dwmblocks}"