Browse Source

fix piped gimme gimme

Kyle P Davis 10 năm trước cách đây
mục cha
commit
8a50fe908a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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