improve error message formatting
This commit is contained in:
parent
b61befa4ab
commit
530d6e0ba0
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue