Browse Source

fix piped gimme gimme

Kyle P Davis 10 years ago
parent
commit
8a50fe908a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gimme.sh

+ 1 - 1
gimme.sh

@@ -254,7 +254,7 @@ _gimme_complete() {
 }
 }
 complete -F _gimme_complete gimme
 complete -F _gimme_complete gimme
 
 
-if [[ "$0" = "bash" ]]; then
+if [[ "$BASH_SOURCE" && "$0" = "bash" ]]; then
 	set +e
 	set +e
 elif ! [[ "$0" ]]; then
 elif ! [[ "$0" ]]; then
 	gimme gimme
 	gimme gimme