From 330c007ef1e6de1707cb12f2e97cce4cd98c0b4d Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Sat, 20 Aug 2016 13:08:44 +0300 Subject: [PATCH] Fixed regression: made it safe to run the script in parallel again --- furaffinity-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/furaffinity-dl b/furaffinity-dl index f4f6282..ebbd2f0 100755 --- a/furaffinity-dl +++ b/furaffinity-dl @@ -20,7 +20,7 @@ mkdir -p "$runtime_dir" tempfile="$(umask u=rwx,g=,o= && mktemp --tmpdir=$runtime_dir)" cleanup() { - rm -r "$runtime_dir" + rm -r "$tempfile" } trap cleanup EXIT