Project

General

Profile

Revision f7b1ec4f

Added by Assos Assos about 10 years ago

Prevent double quotes interpretation for drush command arguments. See #378.

View differences:

bin/d7-all-drush.sh
7 7

  
8 8
check_arguments $# 1 "$help"
9 9

  
10
#Store the drush command name (sqlq, vget, cron). This is the first argument. 
11
drush_command_name="$1"
12
#shift will remove the fist argument so that $* will have the second, third...arguments.
13
shift
10 14
for dir in $(find $d7_dir_sites -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do
11 15
    cd $dir
12 16
    echo $dir
13
    drush $*
17
    drush  $drush_command_name """$*"""
14 18
done

Also available in: Unified diff