improve error message formatting

This commit is contained in:
maren 2024-04-13 21:00:36 -04:00
parent b61befa4ab
commit 530d6e0ba0

View file

@ -30,13 +30,14 @@ install() {
chown root:root ${installtarget}/proclaim chown root:root ${installtarget}/proclaim
chown root:root ${installtarget}/heed chown root:root ${installtarget}/heed
chown root:root ${installtarget}/scry chown root:root ${installtarget}/scry
echo
echo "SUCCESS! bunkchat installed!" echo "SUCCESS! bunkchat installed!"
exit 0 exit 0
} }
# check for root perms # check for root perms
if ! [ "$(id -u)" = 0 ]; then if ! [ "$(id -u)" = 0 ]; then
echo
echo "ERROR: please run install with root permission" >&2 echo "ERROR: please run install with root permission" >&2
exit 1 exit 1
fi fi