better 'user is root' check

Daniel Baumann daniel.baumann at panthera-systems.net
Wed Dec 24 04:40:22 PST 2003


Hi

In profiles/LFS/runit there is a check if the user is root. I find it 
better to test that as following:

if [ $(id -u) -ne 0 ]; then [...]; fi

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
E-Mail:         daniel.baumann at panthera-systems.net
Internet:       http://www.daniel-baumann.ch/





More information about the alfs-discuss mailing list