Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
Fix passing quoted arguments in dsh drupal
Browse files Browse the repository at this point in the history
  • Loading branch information
lmakarov committed Apr 15, 2016
1 parent 7ce29fd commit 8d353b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/dsh
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,9 @@ case $1 in
if [[ "$1" == "" ]]; then
_run drupal
else
_run "drupal $@"
# slash escape space-delimited parameters for safe passing between functions
cmd=$(printf " %q" "$@")
_run drupal $cmd
fi
;;
behat)
Expand Down

0 comments on commit 8d353b3

Please sign in to comment.