Skip to content

Commit

Permalink
stdenv-setup: Use set -u as much as possible
Browse files Browse the repository at this point in the history
Older bash version, like those in the bootstrap tools and on macOS,
currently confuse variables defined as an empty array with undefined
variables. `${foo+"${foo[@]}"}` will prevent `set -u` problems with
empty arrays and older without making a single '' in the empty case.

Care is taken to `set +u` when running hooks so as to not break existing
packages.
  • Loading branch information
Ericson2314 committed Aug 23, 2017
1 parent 46930ef commit 81194ee
Showing 1 changed file with 178 additions and 104 deletions.
Loading

0 comments on commit 81194ee

Please sign in to comment.