Skip to content

Commit

Permalink
Quote arguments properly in go-script so that we can use whitespaces …
Browse files Browse the repository at this point in the history
…in arguments, e.g. when running ./go trailscraper (#11)
  • Loading branch information
flosell committed Dec 24, 2017
1 parent 08217af commit 1efa93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ goal_check() {

goal_trailscraper() {
activate_venv
${VENV_DIR}/bin/trailscraper $@
${VENV_DIR}/bin/trailscraper "$@"
}

goal_generate-rst() {
Expand Down Expand Up @@ -169,7 +169,7 @@ goal_push() {
}

if type -t "goal_$1" &>/dev/null; then
goal_$1 ${@:2}
goal_$1 "${@:2}"
else
echo "usage: $0 <goal>
goal:
Expand Down

0 comments on commit 1efa93f

Please sign in to comment.