diff options
author | Keith Packard <keithp@keithp.com> | 2020-11-19 17:05:09 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2020-11-19 17:18:42 -0800 |
commit | a3b63edd26144fb8ebe8ab620be79a9c9519f58a (patch) | |
tree | dbe8e2059b2076527fd5e3f57327a994cd6b10d8 | |
parent | 1e096674ee10abe4b09e972c599b54f88e935ff3 (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-x | release.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 "" |