Skip to content

Commit d41f741

Browse files
betegonclaude
andcommitted
fix(install): provide default for SHELL variable
Use ${SHELL:-sh} to prevent script crash when $SHELL is unset in minimal containers, CI/CD runners, or non-interactive shells where set -u is enabled. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 145f8cc commit d41f741

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/public/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ add_to_path() {
114114

115115
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
116116

117-
current_shell=$(basename "$SHELL")
117+
current_shell=$(basename "${SHELL:-sh}")
118118
case $current_shell in
119119
fish)
120120
config_files=("$HOME/.config/fish/config.fish")

0 commit comments

Comments
 (0)