소스 검색

fix piped gimme gimme

Kyle P Davis 10 년 전
부모
커밋
8a50fe908a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gimme.sh

+ 1 - 1
gimme.sh

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