Fix if/else

This commit is contained in:
Federico Grandi
2019-09-19 22:15:41 +02:00
parent a34577c63e
commit f97486922d

View File

@@ -19,8 +19,10 @@ EOF
}
add() {
if $INPUT_FORCE find $INPUT_PATH -name "$INPUT_PATTERN" | while read x; do git add -f $x; done
if $INPUT_FORCE
then find $INPUT_PATH -name "$INPUT_PATTERN" | while read x; do git add -f $x; done
else find $INPUT_PATH -name "$INPUT_PATTERN" | while read x; do git add $x; done
fi
}
# This is needed to make the check work for untracked files