Add force option

This commit is contained in:
Federico Grandi
2019-09-19 22:09:51 +02:00
parent 04cd48bddf
commit a34577c63e
3 changed files with 9 additions and 2 deletions

View File

@@ -19,7 +19,8 @@ EOF
}
add() {
find $INPUT_PATH -name "$INPUT_PATTERN" | while read x; do git add $x; done
if $INPUT_FORCE 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
}
# This is needed to make the check work for untracked files