[Git][NTPsec/ntpsec][master] In buildprep, use a test for root that doesn't assume bash.
Eric S. Raymond
gitlab at mg.gitlab.com
Sat Jan 21 11:59:02 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
e6903977 by Eric S. Raymond at 2017-01-21T06:58:53-05:00
In buildprep, use a test for root that doesn't assume bash.
- - - - -
1 changed file:
- buildprep
Changes:
=====================================
buildprep
=====================================
--- a/buildprep
+++ b/buildprep
@@ -21,7 +21,7 @@ else
do=""
fi
-if [ "$do" = "" -a "$UID" != 0 ]
+if [ "$do" = "" -a `id -u` != 0 ]
then
echo "#You must be running as root for your installer to do its thing."
exit 1
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e6903977e769444241ba53c00336caf65afa1c3c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170121/f2601b43/attachment.html>
More information about the vc
mailing list