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-delete-site.sh
8 8

  
9 9
check_arguments $# 1 "$help"
10 10

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

Formats disponibles : Unified diff