Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cleanup): unset all variables during life of pacscript #790

Merged
merged 1 commit into from
Feb 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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