exit 1
fi
-if [ $UID == 0 ]; then
+if [ $(id -u) == 0 ]; then
echo 1>&2 '***' $(dirname $0) should not be in root\'s \$PATH
echo 1>&2 '***' call '"'$DAISY_CHAIN $@'"' directly.
exit 1
# Catch the case where USER is somebody else.
if [ -n "$usr" ]; then
- printf '%d' $usr &>/dev/null
+ printf '%d' "$usr" &>/dev/null
if [ $? -eq 0 ]; then
if [ $usr -ne $(id -u) ]; then
report=1
# Catch the case where GROUP isn't in our groups.
if [ -n "$grp" -a $report -eq 0 ]; then
GRP_CHAIN=""
- printf '%d' $grp &>/dev/null
+ printf '%d' "$grp" &>/dev/null
if [ $? -eq 0 ]; then
GRP_LIST=$(id -G)
else