nDPId/scripts/umask-check.sh
Toni Uhlig 7b91ad8458
Added script to warn a user about issues regarding wrong umask and CPack
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2024-11-20 11:01:01 +01:00

14 lines
390 B
Bash
Executable file

#!/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