updated utils.sh

pull/2/head
Hari Sekhon 5 years ago
parent 1771072be0
commit 86aeee4b31

@ -29,6 +29,8 @@ bash_tools_utils_imported=1
# shellcheck disable=SC1090
. "$srcdir_bash_tools_utils/perl.sh"
. "$srcdir_bash_tools_utils/../.bash.d/colors.sh"
# consider adding ERR as set -e handler, not inherited by shell funcs / cmd substitutions / subshells without set -E
export TRAP_SIGNALS="INT QUIT TRAP ABRT TERM EXIT"
@ -150,6 +152,10 @@ check_exit_code(){
fi
}
tick_msg(){
echo -e "${bldgrn}${txtrst}$*"
}
cpu_count(){
if is_mac; then
cpu_count="$(sysctl -n hw.ncpu)"

Loading…
Cancel
Save