Skip to content

Commit d0ab3cc

Browse files
authored
Fix error when SHELL is not set
1 parent 85cd609 commit d0ab3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argcomplete/scripts/activate_global_python_argcomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def link_user_rcfiles():
136136
link_bash_user_rcfile()
137137

138138
def add_zsh_system_dir_to_fpath_for_user():
139-
if "zsh" not in os.environ.get("SHELL"):
139+
if "zsh" not in os.environ.get("SHELL", ""):
140140
return
141141
try:
142142
zsh_system_dir = get_zsh_system_dir()

0 commit comments

Comments
 (0)