Also fix a comparison, `id -u` is a number.
fi
# Some options are only necessary when running as root. They are marked as
# "(ROOT)".
-if [ x`id -u` != x0 ]; then
+if test "`id -u`" -ne 0; then
echo screenrc: removing root options
grep -v '(ROOT)' screenrc > screenrc.tmp
mv screenrc.tmp screenrc
fi
# Display current battery charge on computers with a battery. Necessary lines
# are marked as "(BATTERY)".
-if [ ! -d /sys/class/power_supply/BAT0 ]; then
+if test ! -d /sys/class/power_supply/BAT0; then
echo screenrc: removing battery display
grep -v '(BATTERY)' screenrc > screenrc.tmp
mv screenrc.tmp screenrc