Project

General

Profile

Revision a0869461

Added by Julien Enselme about 9 years ago

Remove self that appear if sites_list is launched in one of drupal directories

View differences:

bin/scripts-utils.sh
128 128
}
129 129

  
130 130
sites_list() {
131
    drush sa --format=csv --fields="name","uri" | awk '{FS=","; if ($2 != "") { print $1;}}' | sort
131
    # grep -v "^self$" is used to remove self that appear if command is launched in one of drupal directories
132
    drush sa --format=csv --fields="name","uri" | awk '{FS=","; if ($2 != "") { print $1;}}' | sort | grep -v "^self$"
132 133
}

Also available in: Unified diff