Projet

Général

Profil

Révision 6d91f38e

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

Test added for git where posing trouble

We must use to launch function in a subshell, other wise the whole
script exit with the instruction 'exit 1' or 'exit 0'.
We must use " around variable for test. Otherwise, we get a Unexpected
operator error.

Voir les différences:

bin/d7-create-site.sh
9 9
######## Exceptions
10 10
check_arguments $# 1 "$help"
11 11

  
12
if ! work_tree_clean ; then
12
if ! `work_tree_clean` ; then
13 13
    echo "Your work tree is not clean. Solve this before $0 can continue."
14 14
    exit 2
15 15
fi

Formats disponibles : Unified diff