Skip to content

Commit 6271c2e

Browse files
committed
Merge pull request #49 from jmaslibre/master
Remove $EUID bashism in debian.sh
2 parents a8632c4 + 1eee12b commit 6271c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ REPO_DEB_URL="http://apt.puppetlabs.com/puppetlabs-release-${DISTRIB_CODENAME}.d
1919
#--------------------------------------------------------------------
2020
# NO TUNABLES BELOW THIS POINT
2121
#--------------------------------------------------------------------
22-
if [ "$EUID" != "0" ]; then
22+
if [ "$(id -u)" != "0" ]; then
2323
echo "This script must be run as root." >&2
2424
exit 1
2525
fi

0 commit comments

Comments
 (0)