Browse Source

fix bug where exporting helper functions too often

Kyle P Davis 8 years ago
parent
commit
630de811e3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gimme

+ 2 - 2
gimme

@@ -35,8 +35,6 @@ gimme_pkg() {
 	fi
 }
 
-export -f has pkgtool gimme_pkg
-
 if [[ "$0" =~ [-]?bash ]]; then # sourced or piped
 
 	if [[ "$BASH_SOURCE" ]]; then # sourced
@@ -95,6 +93,8 @@ else # normal usage
 
 	set -o errexit -o pipefail
 
+	export -f has pkgtool gimme_pkg
+
 	for GIMME; do
 
 		echo "# WANT: $GIMME"