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:
parent
9035c20888
commit
98a89dd0fa
5 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
|
||||
### Code:
|
||||
|
||||
set -o nounset
|
||||
|
||||
die () # write error to stderr and exit
|
||||
{
|
||||
[ $# -gt 0 ] && echo "$PN: $@" >&2
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
### Code:
|
||||
|
||||
set -o nounset
|
||||
|
||||
die () # write error to stderr and exit
|
||||
{
|
||||
[ $# -gt 0 ] && echo "$PN: $@" >&2
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
### Code:
|
||||
|
||||
set -o nounset
|
||||
|
||||
die () # write error to stderr and exit
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue