Skip to content

fix unbound variable error in install.sh cleanup trap#76

Merged
developersdigest merged 1 commit intomainfrom
install-sh
Mar 25, 2026
Merged

fix unbound variable error in install.sh cleanup trap#76
developersdigest merged 1 commit intomainfrom
install-sh

Conversation

@developersdigest
Copy link
Member

tmp_dir was declared local inside main(), but the EXIT trap fires after main() returns when the local is out of scope. With set -u this causes "unbound variable" on exit.

tmp_dir was declared local inside main(), but the EXIT trap
fires after main() returns when the local is out of scope.
With set -u this causes "unbound variable" on exit.
@developersdigest developersdigest merged commit 1328fd3 into main Mar 25, 2026
4 checks passed
@developersdigest developersdigest deleted the install-sh branch March 25, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant