diff --git a/scripts/_utils.sh b/scripts/_utils.sh index 2bb8996..b2b51bc 100644 --- a/scripts/_utils.sh +++ b/scripts/_utils.sh @@ -29,7 +29,7 @@ function utils_find_last_version() function utils_callcmd() { - if [[ -v 'VERBOSE' && "$VERBOSE" == '1' ]] + if [[ "$VERBOSE" == '1' ]] then echo "$@" if ! "$@"; then @@ -49,7 +49,7 @@ function utils_callcmd() function utils_warn_callcmd() { - if [[ -v 'VERBOSE' && "$VERBOSE" == '1' ]] + if [[ "$VERBOSE" == '1' ]] then echo "$@" if ! "$@"; then @@ -73,7 +73,7 @@ function utils_makecmd() { local cores - [[ $(uname) == "OpenBSD" ]] \ + [[ "$(uname -s)" == 'OpenBSD' || "$(uname -s)" == 'Darwin' ]] \ && cores=$(sysctl -n hw.ncpu) \ || cores=$(nproc) [[ $(command -v gmake >/dev/null 2>&1) ]] \ diff --git a/scripts/install.sh b/scripts/install.sh index bf2d8ab..cffaa82 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -158,5 +158,7 @@ then rm -rf ../../build fi -echo 'Successfully installed sh-elf-vhex !' -echo "Do not forget to export the binary path '$prefix_install'" +echo -en \ + 'Successfully installed sh-elf-vhex !\n' \ + '\rDo not forget to export the binary path' \ + "'export PATH=\"\$PATH:$prefix_install\"'"