Skip to content

Commit

Permalink
scripts: imp requirements checking
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed May 17, 2021
1 parent 453cf7a commit 3308921
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,20 @@ is_little_endian() {
# machine. The required software:
#
# curl
# unzip (macOS)
# tar (linux)
# unzip (macOS) / tar (other unices)
#
check_required() {
readonly spec_darwin="unzip"
readonly spec_linux="tar"
readonly required_darwin="unzip"
readonly required_unix="tar"

# Split with space.
required="curl"
if [ "$os" = 'linux' ]
if [ "$os" = 'linux' ] || [ "$os" = 'freebsd' ]
then
required="$required $spec_linux"
required="$required $required_unix"
elif [ "$os" = 'darwin' ]
then
required="$required $spec_darwin"
required="$required $required_darwin"
fi

# Don't use quotes to get word splitting.
Expand Down

0 comments on commit 3308921

Please sign in to comment.