Projet

Général

Profil

Révision a0869461

Ajouté par Julien Enselme il y a environ 9 ans

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

Voir les différences:

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
}

Formats disponibles : Unified diff