Skip to content

Commit

Permalink
v2.2.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Rybo713 committed May 19, 2019
1 parent b5ca981 commit 845b137
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ A command-line utility which shows the user their system info and a bunch of use
- jq
- wget
- curl
- bash 5.0

## Instructions for Hakku v1.0-1.9beta

Expand All @@ -24,7 +25,8 @@ A command-line utility which shows the user their system info and a bunch of use
8) From now on you can update to new releases using the script

## Instructions for Hakku2 v2.0-alpha1 and above

0) Make sure you have the latest bash 5.0 installed and made it the default shell.
- If not, follow this guide: https://itnext.io/upgrading-bash-on-macos-7138bd1066ba
1) Go to Releases and download the latest version.
2) Extract zip file
3) Open terminal and type `cd "location of extracted folder"`
Expand Down
27 changes: 19 additions & 8 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,35 +46,46 @@ printf "${GREEN}${bold}[INFO] ${NC}${normal}Checking system if it meets requirem

if
command -v brew > /dev/null ; then
printf "${GREEN}${bold}[INFO] ${NC}${normal}HomeBrew package is installed\n"
printf "${GREEN}${bold}[INFO] ${NC}${normal}HomeBrew is installed\n"
else
printf "${RED}${bold}[ERROR] ${NC}${normal}HomeBrew package is not installed\n"
printf "${RED}${bold}[ERROR] ${NC}${normal}HomeBrew is not installed\n"
exit 0
fi

if
command -v bash > /dev/null ; then
printf "${GREEN}${bold}[INFO] ${NC}${normal}bash 5.0 is installed\n"
else
printf "${RED}${bold}[ERROR] ${NC}${normal}bash 5.0 is not installed\n"
echo "Install bash 5.0 with 'brew install bash'"
echo "Follow the instructions on Github to link it"
exit 0
fi

if command -v jq > /dev/null ; then
printf "${GREEN}${bold}[INFO] ${NC}${normal}jq package is installed\n"
printf "${GREEN}${bold}[INFO] ${NC}${normal}jq is installed\n"
else
printf "${RED}${bold}[ERROR] ${NC}${normal}jq package is not installed\n"
printf "${RED}${bold}[ERROR] ${NC}${normal}jq is not installed\n"
echo "Install jq with 'brew install jq'"
exit 0
fi

if command -v wget > /dev/null ; then
printf "${GREEN}${bold}[INFO] ${NC}${normal}wget package is installed\n"
printf "${GREEN}${bold}[INFO] ${NC}${normal}wget is installed\n"
else
printf "${RED}${bold}[ERROR] ${NC}${normal}wget package is not installed\n"
printf "${RED}${bold}[ERROR] ${NC}${normal}wget is not installed\n"
echo "Install wget with 'brew install wget'"
exit 0
fi

if command -v curl > /dev/null ; then
printf "${GREEN}${bold}[INFO] ${NC}${normal}curl package is installed\n"
printf "${GREEN}${bold}[INFO] ${NC}${normal}curl is installed\n"
else
printf "${RED}${bold}[ERROR] ${NC}${normal}curl package is not installed\n"
printf "${RED}${bold}[ERROR] ${NC}${normal}curl is not installed\n"
echo "Curl should be installed with macOS"
exit 0
fi

printf "${GREEN}${bold}[INFO] ${NC}${normal}Getting Bash version\n"
bashv=$BASH_VERSION
printf "${GREEN}${bold}[INFO] ${NC}${normal}Getting Model info\n"
Expand Down

0 comments on commit 845b137

Please sign in to comment.