atst/script/include/helper_functions.inc.sh
Devon Mackay c4283fe1a4 Remove interpreter specification
These script fragments should only ever be sourced rather then directly
executed
2018-07-10 10:55:28 -04:00

10 lines
351 B
Bash

# helper_functions.inc.sh: General helper functions
# Check pip to see if the given package is installed
# (returns 0 if installed, 2 if not installed)
check_pip_for () {
# Use 'pip list' to see if the requested package is already installed
return $(pip list --format=columns --disable-pip-version-check | \
grep -Fe "${1}" >/dev/null 2>&1)
}