diff options
author | Sandro Jäckel | 2022-06-06 02:13:29 +0200 |
---|---|---|
committer | Sandro Jäckel | 2022-06-06 02:13:29 +0200 |
commit | 70a7d055f5c3e9bc5569e70fffb48a2d78d0a55d (patch) | |
tree | e4ae35040fced153cacedcf85bbb9873f7245e59 /pkgs | |
parent | 89d5ef1295b0b78d23856741ac914f8868550173 (diff) |
ArchiSteamFarm: fix tmp filling up
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/applications/misc/ArchiSteamFarm/updater.sh | 9 |
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 |