Page MenuHomePhabricator

D6404.id21467.diff
No OneTemporary

D6404.id21467.diff

diff --git a/scripts/prompt_direnv_macos.sh b/scripts/prompt_direnv_macos.sh
--- a/scripts/prompt_direnv_macos.sh
+++ b/scripts/prompt_direnv_macos.sh
@@ -21,7 +21,7 @@
# `test -t` tests if a file descriptor is open, 0 being stdin
# Normally, a non-interactive shell will not have 0 FD bound
# However, Buildkite still has 0 FD bound, so check if PS1 is empty
-if [[ ! -t 0 ]] || [[ -z "$PS1" ]]; then
+if [[ ! -t 0 ]] || [[ -z "${PS1-}" ]]; then
exit 0
fi

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 9:20 PM (1 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677720
Default Alt Text
D6404.id21467.diff (467 B)

Event Timeline