Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3491928
D6404.id21467.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
467 B
Referenced Files
None
Subscribers
None
D6404.id21467.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6404: [Nix] Fix undeclared failure
Attached
Detach File
Event Timeline
Log In to Comment