Project

General

Profile

Revision 6d91f38e

Added by Julien Enselme almost 8 years ago

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.

View differences:

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

Also available in: Unified diff