Skip to content

Commit

Permalink
updated error message with help function
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbent committed Sep 23, 2021
1 parent f380f9f commit 8d628b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Fragments/Header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ if [[ "$osVersion" != "10.15."* ]] && [[ "$osVersion" != "11."* ]] && [[ "$osVer
echo ""
echo "*** This script support macOS Catalina, Big Sur and Monterey only"
echo
echo "*** Use -h --help for more instructions"
echo
echo "*** Quitting..."
echo ""
exit 1
Expand All @@ -262,6 +260,9 @@ if [[ "$osVersion" != "10.15."* ]] && [[ "$osVersion" != "11."* ]] && [[ "$osVer
# Check for admin/root permissions
if [[ "$(id -u)" != "0" ]]; then
echo "*** Script must be run as root, or have root privileges (ie. sudo)." 1>&2
echo
echo "*** Use -h --help for more instructions"
echo
echo "*** Quitting..."
echo ""
exit 1
Expand Down

0 comments on commit 8d628b0

Please sign in to comment.