From c4283fe1a4e55dfbe74b64c485117eaebada9d7d Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Fri, 6 Jul 2018 13:17:03 -0400 Subject: [PATCH] Remove interpreter specification These script fragments should only ever be sourced rather then directly executed --- script/include/global_header.inc.sh | 6 ++---- script/include/helper_functions.inc.sh | 3 +-- script/include/setup_functions.inc.sh | 2 -- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/script/include/global_header.inc.sh b/script/include/global_header.inc.sh index 67a048b2..443b5c03 100755 --- a/script/include/global_header.inc.sh +++ b/script/include/global_header.inc.sh @@ -1,7 +1,5 @@ -#!/bin/bash - -# scriptz/global_header.inc: Any basic things that should be executed at the -# beginning of any and every script +# global_header.inc: Any basic things that should be executed at the +# beginning of any and every script # If any command fails, immediately exit the script set -e diff --git a/script/include/helper_functions.inc.sh b/script/include/helper_functions.inc.sh index 18968aae..3c427a0f 100644 --- a/script/include/helper_functions.inc.sh +++ b/script/include/helper_functions.inc.sh @@ -1,10 +1,9 @@ -#!/bin/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) } diff --git a/script/include/setup_functions.inc.sh b/script/include/setup_functions.inc.sh index 7c4a6741..50b12af3 100644 --- a/script/include/setup_functions.inc.sh +++ b/script/include/setup_functions.inc.sh @@ -1,5 +1,3 @@ -#!/bin/bash - # setup_functions.inc.sh: Functions used by the setup script install_pipenv() {