Skip to content

Commit

Permalink
fix(cleanup): unset all variables during life of pacscript (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 committed Feb 19, 2023
1 parent f2d8ddd commit d689a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/scripts/install-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function cleanup() {
fi
sudo rm -rf "${STOWDIR}/${name:-$PACKAGE}.deb"
rm -f /tmp/pacstall-select-options
unset name version url build_depends depends breaks replace description hash optdepends ppa maintainer pacdeps patch PACPATCH NOBUILDDEP optinstall gives epoch pac_functions 2> /dev/null
unset -f pkgver removescript prepare build install incompatible 2> /dev/null
unset name pkgname repology epoch url depends build_depends breaks replace gives description hash optdepends ppa maintainer pacdeps patch PACPATCH NOBUILDDEP provides incompatible optinstall epoch pac_functions 2> /dev/null
unset -f pkgver postinst removescript prepare build install 2> /dev/null
}

function trap_ctrlc() {
Expand Down

0 comments on commit d689a61

Please sign in to comment.