blob: 8c81484ad6ce2caecc15ff89d75ac5a58af65213 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|