]> git.eshelyaron.com Git - emacs.git/commitdiff
Use "set -o nounset" in bash scripts
authorStefan Kangas <stefankangas@gmail.com>
Tue, 20 Sep 2022 08:27:10 +0000 (10:27 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 20 Sep 2022 08:34:13 +0000 (10:34 +0200)
* admin/automerge:
* admin/make-manuals:
* admin/update-copyright:
* admin/update_autogen:
* admin/upload-manuals: Use "set -o nounset".

admin/automerge
admin/make-manuals
admin/update-copyright
admin/update_autogen
admin/upload-manuals

index 9919186736708d1021ebd86929f8e4c9ae4474ab..c7c17dfb5ecc6a4cced93fd53266c844c974fc7a 100755 (executable)
@@ -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
index 8085412cc8a6842a143a4e0c4752ce520ff4bab5..cb0c00a423f7e6b60131a1c6dcfce85bf329412f 100755 (executable)
@@ -33,6 +33,8 @@
 
 ### Code:
 
+set -o nounset
+
 die ()                          # write error to stderr and exit
 {
     [ $# -gt 0 ] && echo "$PN: $@" >&2
index 5a04847a661b8c28a4e51c729f6e3831a48c5dff..8b7c05749d0ffa3e35535159370d40a9b1553321 100755 (executable)
@@ -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
 
index 24513671712a4123f9c277058c43ba789d7a9b7b..8bfbdc92e9a8006bc99dc42ce48a357337ce275e 100755 (executable)
@@ -32,6 +32,8 @@
 
 ### Code:
 
+set -o nounset
+
 die ()                 # write error to stderr and exit
 {
     [ $# -gt 0 ] && echo "$PN: $@" >&2
index 1b7950ede802b8a5ceb4153e4c627ced05579322..50336ee64c086d72685ad1eb8db6dbe93c3ace06 100755 (executable)
@@ -36,6 +36,7 @@
 
 ### Code:
 
+set -o nounset
 
 die ()                          # write error to stderr and exit
 {