浏览代码

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