Project

General

Profile

Paste
Download (485 Bytes) Statistics
| Branch: | Revision:

root / bin / d7-all-drush.sh @ f7b1ec4f

1
#!/bin/sh
2

    
3
. /home/assos/bin/scripts-config.sh
4
. scripts-utils.sh
5

    
6
help="# ARGS: drush_command"
7

    
8
check_arguments $# 1 "$help"
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
14
for dir in $(find $d7_dir_sites -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do
15
    cd $dir
16
    echo $dir
17
    drush  $drush_command_name """$*"""
18
done