Use "set -o nounset" in bash scripts

* admin/automerge:
* admin/make-manuals:
* admin/update-copyright:
* admin/update_autogen:
* admin/upload-manuals: Use "set -o nounset".
This commit is contained in:
Stefan Kangas 2022-09-20 10:27:10 +02:00
parent 9035c20888
commit 98a89dd0fa
5 changed files with 9 additions and 0 deletions

View file

@ -35,6 +35,8 @@
## it with the -d option in the repository directory, in case a pull
## updates this script while it is working.
set -o nounset
die () # write error to stderr and exit
{
[ $# -gt 0 ] && echo "$PN: $*" >&2

View file

@ -33,6 +33,8 @@
### Code:
set -o nounset
die () # write error to stderr and exit
{
[ $# -gt 0 ] && echo "$PN: $@" >&2

View file

@ -31,6 +31,8 @@
# updated and some should not be, due to registration numbers, so
# this script leaves these copyright years alone for now.
set -o nounset
: ${UPDATE_COPYRIGHT_USE_INTERVALS=1}
export UPDATE_COPYRIGHT_USE_INTERVALS

View file

@ -32,6 +32,8 @@
### Code:
set -o nounset
die () # write error to stderr and exit
{
[ $# -gt 0 ] && echo "$PN: $@" >&2

View file

@ -36,6 +36,7 @@
### Code:
set -o nounset
die () # write error to stderr and exit
{