emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 98a89dd0fa: Use "set -o nounset" in bash scripts


From: Stefan Kangas
Subject: master 98a89dd0fa: Use "set -o nounset" in bash scripts
Date: Tue, 20 Sep 2022 04:45:33 -0400 (EDT)

branch: master
commit 98a89dd0fa340e852f7a5633d2d68885c0e52219
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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".
---
 admin/automerge        | 2 ++
 admin/make-manuals     | 2 ++
 admin/update-copyright | 2 ++
 admin/update_autogen   | 2 ++
 admin/upload-manuals   | 1 +
 5 files changed, 9 insertions(+)

diff --git a/admin/automerge b/admin/automerge
index 9919186736..c7c17dfb5e 100755
--- a/admin/automerge
+++ b/admin/automerge
@@ -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
diff --git a/admin/make-manuals b/admin/make-manuals
index 8085412cc8..cb0c00a423 100755
--- a/admin/make-manuals
+++ b/admin/make-manuals
@@ -33,6 +33,8 @@
 
 ### Code:
 
+set -o nounset
+
 die ()                          # write error to stderr and exit
 {
     [ $# -gt 0 ] && echo "$PN: $@" >&2
diff --git a/admin/update-copyright b/admin/update-copyright
index 5a04847a66..8b7c05749d 100755
--- a/admin/update-copyright
+++ b/admin/update-copyright
@@ -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
 
diff --git a/admin/update_autogen b/admin/update_autogen
index 2451367171..8bfbdc92e9 100755
--- a/admin/update_autogen
+++ b/admin/update_autogen
@@ -32,6 +32,8 @@
 
 ### Code:
 
+set -o nounset
+
 die ()                 # write error to stderr and exit
 {
     [ $# -gt 0 ] && echo "$PN: $@" >&2
diff --git a/admin/upload-manuals b/admin/upload-manuals
index 1b7950ede8..50336ee64c 100755
--- a/admin/upload-manuals
+++ b/admin/upload-manuals
@@ -36,6 +36,7 @@
 
 ### Code:
 
+set -o nounset
 
 die ()                          # write error to stderr and exit
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]