about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro Jäckel2022-06-06 02:13:29 +0200
committerSandro Jäckel2022-06-06 02:13:29 +0200
commit70a7d055f5c3e9bc5569e70fffb48a2d78d0a55d (patch)
treee4ae35040fced153cacedcf85bbb9873f7245e59 /pkgs
parent89d5ef1295b0b78d23856741ac914f8868550173 (diff)
ArchiSteamFarm: fix tmp filling up
Diffstat (limited to 'pkgs')
-rwxr-xr-xpkgs/applications/misc/ArchiSteamFarm/updater.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/applications/misc/ArchiSteamFarm/updater.sh b/pkgs/applications/misc/ArchiSteamFarm/updater.sh
index 9baedde025da..4ff04432040b 100755
--- a/pkgs/applications/misc/ArchiSteamFarm/updater.sh
+++ b/pkgs/applications/misc/ArchiSteamFarm/updater.sh
@@ -25,6 +25,11 @@ fi
 store_src="$(nix-build -A ArchiSteamFarm.src --no-out-link)"
 platforms="$(nix-instantiate --strict --eval --json -A ArchiSteamFarm.meta.platforms | jq -r .[])"
 src="$(mktemp -d /tmp/ArchiSteamFarm-src.XXX)"
+
+trap '
+  rm -r "$src"
+' EXIT
+
 cp -rT "$store_src" "$src"
 chmod -R +w "$src"
 
@@ -44,9 +49,5 @@ for i in $platforms; do
   || echo "Did you set up binformat for $i?";
 done;
 
-trap '
-  popd
-  rm -r "$src"
-' EXIT
 cd "$asf_path"
 ./web-ui/update.sh