From ab9ff3b29ef88990233cf1b9cf7c8d2588b19a97 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 15 Jun 2021 11:27:46 +0200 Subject: [PATCH] do not flip order of scanning every other scan --- threadwatcher | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/threadwatcher b/threadwatcher index b70215b..c300199 100755 --- a/threadwatcher +++ b/threadwatcher @@ -16,7 +16,7 @@ DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus export DBUS_SESSION_BUS_ADDRESS export DISPLAY=:0.0 -help="threadwatcher [add URL DL_LOCATION] [list] [edit] [clean] +help="threadwatcher [add URL DL_LOCATION] [list] [edit] [clean] [help] add URL DL_LOCATION downloads specified thread to given location. Paths can be relative to HOME or absolute. @@ -113,7 +113,8 @@ scan(){ done wait done - mv "$TMP_URLFILE" "$URLFILE" + tac "$TMP_URLFILE" > "$URLFILE" + rm "$TMP_URLFILE" rm /tmp/threadwatcher.lock }