aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-12-19 13:55:06 -0800
committerKaz Kylheku <kazinator@Kazs-MacBook-Pro.local>2024-12-19 14:00:35 -0800
commit97cd789d40e2d4a3e01219363d58c77389160058 (patch)
tree5a0127a2592fabafab6b3e6487644a43b7966e66
parentef6868d2f3edc883b75c672bb17ece5bc6ef9c37 (diff)
downloadbasta-97cd789d40e2d4a3e01219363d58c77389160058.tar.gz
basta-97cd789d40e2d4a3e01219363d58c77389160058.tar.bz2
basta-97cd789d40e2d4a3e01219363d58c77389160058.zip
Bail if Bash is not interactive.
-rw-r--r--basta.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/basta.sh b/basta.sh
index 88e6496..8c38c4a 100644
--- a/basta.sh
+++ b/basta.sh
@@ -1,5 +1,7 @@
# License at bottom
+[[ $- == *i* ]] || return 0
+
basta_old_cmdno=${basta_old_cmdno-0}
basta_old_lines=${basta_old_lines-0}
basta_old_cols=${basta_old_cols-0}