diff --git a/furaffinity-dl b/furaffinity-dl index 457e2d2..848d9a1 100755 --- a/furaffinity-dl +++ b/furaffinity-dl @@ -16,10 +16,11 @@ You can also log in to FurAffinity and download restricted content, like this: fi runtime_dir="$HOME"'/.cache/furaffinity-dl' +mkdir -p "$runtime_dir" tempfile="$(umask u=rwx,g=,o= && mktemp --tmpdir=$runtime_dir)" cleanup() { - rm -f "$tempfile" + rm -f "$runtime_dir" } trap cleanup EXIT