Projet

Général

Profil

Révision 4377ca71

Ajouté par Julien Enselme il y a plus de 10 ans

Fix coding style errors

Voir les différences:

bin/scripts-utils.sh
33 33
    echo $db_password
34 34
}
35 35

  
36
generate_password(){
36
generate_password() {
37 37
    # ARGS: [password_length]
38 38
    # The password contains special characters. '/' must be excluded to avoid sed malfunction.
39 39

  
......
52 52
    echo $site_password
53 53
}
54 54

  
55
count_d7_sites(){
55
count_d7_sites() {
56 56
    find $d7_dir_sites -type d ! -name all -maxdepth 1 | wc -l
57 57
}
58 58

  
......
70 70
    sed "s/\%\%DBUSER\%\%/$1/ ; s/\%\%DBNAME\%\%/$1/ ; s/\%\%DBPASS\%\%/$2/ ; s/\%\%SITE_NAME\%\%/$1/" < $3 > $4
71 71
}
72 72

  
73
give_dir(){
73
give_dir() {
74 74
    # ARG: file
75 75
    # Return the abosulte directory path of a file or a dir.
76 76
    settings_location=`realpath $1`

Formats disponibles : Unified diff