diff --git a/pylauncher.sh b/pylauncher.sh index 617c41652f168abd4a6552ab59b7030163fd0aa1..a7318d26a87d09f7a8a66dff5b3bbd104d3b7e86 100755 --- a/pylauncher.sh +++ b/pylauncher.sh @@ -1,13 +1,14 @@ #! /bin/zsh -if [[ $# -ne 2 ]]; then - echo "Usage: $0 environment_name command" >&2 +if [[ $# -lt 2 ]]; then + echo "Usage: $0 environment_name command [arg1..argn]" >&2 exit 1 fi environment="$1" -command="$2" +shift 1 +# command="$2" source activate $environment -eval $command +eval "$@"