diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-11-20 11:01:01 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-11-20 11:01:01 +0100 |
commit | 7b91ad84584b4c61a5315731436675aae7d2fcb2 (patch) | |
tree | 9ffe16c93ad67f60efe7f1dd982d481d3a2fd28e /scripts | |
parent | 442900bc14a591ac11f2fc0c6e7c7936b4f3298a (diff) |
Added script to warn a user about issues regarding wrong umask and CPack
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/umask-check.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/umask-check.sh b/scripts/umask-check.sh new file mode 100755 index 000000000..8c81484ad --- /dev/null +++ b/scripts/umask-check.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +UMASK=$(umask) + +if [ "${UMASK}" != "0002" -a "${UMASK}" != "0022" ]; then + cat <<EOF +******************************************** +* WARNING: 'cpack -G DEB' / 'cpack -G RPM' * +* might not work correctly due to umask, * +* which is set to ${UMASK} * +* but expected is either 0002 or 0022 * +******************************************** +EOF +fi |