mirror of
https://github.com/hamishcoleman/thinkpad-ec
synced 2024-11-16 06:12:48 +00:00
Cannot error on unset variables and at the same time process maybe-empty commandline args
This commit is contained in:
parent
46cb7c09a8
commit
390f5bb659
@ -6,7 +6,7 @@
|
||||
# FIXME
|
||||
# - the description file is expected to be in the current dir
|
||||
|
||||
set -o nounset -o pipefail -o errexit
|
||||
set -o pipefail -o errexit
|
||||
|
||||
DESCRIPTIONS='Descriptions.txt'
|
||||
|
||||
@ -21,6 +21,8 @@ if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -o nounset
|
||||
|
||||
LINE=$(egrep "^$FILE " "$DESCRIPTIONS")
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user