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-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

Also available in: Unified diff