Skip to content
Snippets Groups Projects
Commit 6e566f3a authored by Jeremy Auguste's avatar Jeremy Auguste
Browse files

Small change to the way command arguments are handled

parent 398353ad
No related branches found
No related tags found
No related merge requests found
#! /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 "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment