summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2020-11-19 17:05:09 -0800
committerKeith Packard <keithp@keithp.com>2020-11-19 17:18:42 -0800
commita3b63edd26144fb8ebe8ab620be79a9c9519f58a (patch)
treedbe8e2059b2076527fd5e3f57327a994cd6b10d8
parent1e096674ee10abe4b09e972c599b54f88e935ff3 (diff)
Adjust umask check to forbid 022 *and* 0022 instead of *or*
The previous check required umask to simultaneously equal 022 and 0022, which seems difficult to me. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rwxr-xr-xrelease.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/release.sh b/release.sh
index 09f6b56..1735c99 100755
--- a/release.sh
+++ b/release.sh
@@ -949,7 +949,7 @@ do
done
umask=$(umask)
-if [ "${umask}" != "022" -o "${umask}" != "0022" ]; then
+if [ "${umask}" != "022" -a "${umask}" != "0022" ]; then
echo ""
echo "Error: umask is not 022"
echo ""