dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1ba4d41e6a6c706f45388f597478ea18c1b3c6eb
parent c18e8ec004c0d1baf1f57ef9a0259d994550b9c3
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 11 Dec 2018 16:12:41 -0500

queue fix

Diffstat:
M.scripts/tools/queueandnotify | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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"