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}/heed
chown root:root ${installtarget}/scry
echo
echo "SUCCESS! bunkchat installed!"
exit 0
}
# check for root perms
if ! [ "$(id -u)" = 0 ]; then
echo
echo "ERROR: please run install with root permission" >&2
exit 1
fi