Skip to content

Commit

Permalink
Fix broken shell command
Browse files Browse the repository at this point in the history
Various tests produced the following error:
```
Set $GALAXY_VIRTUAL_ENV to /home/travis/.planemo/gx_venv
/bin/sh: 1: if [ -e "$GALAXY_VIRTUAL_ENV" ]; : not found
run command exited with return code 127
```

Introduced in commit 434099e .
  • Loading branch information
nsoranzo committed Nov 21, 2018
1 parent 6496773 commit ca8f5fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions planemo/galaxy/run.py
Expand Up @@ -14,14 +14,14 @@

# Activate galaxy's virtualenv if present (needed for tests say but not for
# server because run.sh does this).
ACTIVATE_COMMAND = '[ -e "$GALAXY_VIRTUAL_ENV" ] && . "$GALAXY_VIRTUAL_ENV"/bin/activate'
ACTIVATE_COMMAND = 'if [ -e "$GALAXY_VIRTUAL_ENV" ]; then . "$GALAXY_VIRTUAL_ENV"/bin/activate; fi'
CREATE_COMMAND_TEMPLATE = string.Template(
'if [ ! -e "$GALAXY_VIRTUAL_ENV" ]; then $create_virtualenv; fi',
)
PRINT_VENV_COMMAND = shell_join(
r'echo "Set \$GALAXY_VIRTUAL_ENV to $GALAXY_VIRTUAL_ENV"',
('if [ -e "$GALAXY_VIRTUAL_ENV" ]; ',
'then echo "Virtual environment directory exists."; ',
('if [ -e "$GALAXY_VIRTUAL_ENV" ]; '
'then echo "Virtual environment directory exists."; '
'else echo "Virtual environment directory does not exist."; fi'),
)

Expand Down

0 comments on commit ca8f5fc

Please sign in to comment.