summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-12-11 16:12:41 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-12-11 16:12:41 -0500
commit2ef3182b2f8cb6c10350b34c2d6e74aa6a9c087b (patch)
tree3565a6287c835e9acf51d635429c84816657be23
parenta3e25517daaf4869e749f6733d4a33fcf88a5fbc (diff)
downloadeibhear-2ef3182b2f8cb6c10350b34c2d6e74aa6a9c087b.tar.gz
eibhear-2ef3182b2f8cb6c10350b34c2d6e74aa6a9c087b.tar.zst
eibhear-2ef3182b2f8cb6c10350b34c2d6e74aa6a9c087b.zip
queue fix
-rwxr-xr-x.scripts/tools/queueandnotify6
1 files changed, 4 insertions, 2 deletions
diff --git a/.scripts/tools/queueandnotify b/.scripts/tools/queueandnotify
index 083d796..332668f 100755
--- a/.scripts/tools/queueandnotify
+++ b/.scripts/tools/queueandnotify
@@ -9,8 +9,10 @@ while read -r line; do
url="$(echo "$line" | awk '{print $1}')"
base="$(basename "$url")"
notify-send -i "$PIX/dl.png" "Queuing $base..."
- idnum="$(tsp curl -LO "$url" && mv "$base" "$(echo "$base" | sed "s/?\(source\|dest\).*//")")"
- tsp -D "$idnum" notify-send -i "$PIX/check.png" "$base done."
+ idnum="$(tsp curl -LO "$url")"
+ realname="$(echo "$base" | sed "s/?\(source\|dest\).*//;s/%20/ /g")"
+ tsp -D "$idnum" mv "$base" "$realname"
+ tsp -D "$idnum" notify-send -i "$PIX/check.png" "$realname done."
done < "$queuefile"
echo > "$queuefile"