File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ function virtualenvwrapper_run_hook {
228
228
( \
229
229
virtualenvwrapper_cd " $WORKON_HOME " &&
230
230
" $VIRTUALENVWRAPPER_PYTHON " -m ' virtualenvwrapper.hook_loader' \
231
- $HOOK_VERBOSE_OPTION --script " $hook_script " " $@ " \
231
+ ${ HOOK_VERBOSE_OPTION:- } --script " $hook_script " " $@ " \
232
232
)
233
233
result=$?
234
234
260
260
# Set up tab completion. (Adapted from Arthur Koziel's version at
261
261
# http://arthurkoziel.com/2008/10/11/virtualenvwrapper-bash-completion/)
262
262
function virtualenvwrapper_setup_tab_completion {
263
- if [ -n " $BASH " ] ; then
263
+ if [ -n " ${ BASH:- } " ] ; then
264
264
_virtualenvs () {
265
265
local cur=" ${COMP_WORDS[COMP_CWORD]} "
266
266
COMPREPLY=( $( compgen -W " ` virtualenvwrapper_show_workon_options` " -- ${cur} ) )
You can’t perform that action at this time.
0 commit comments