diff options
author | Eric Curtin <ericcurtin17@gmail.com> | 2020-03-23 17:50:44 +0000 |
---|---|---|
committer | Eric Curtin <ericcurtin17@gmail.com> | 2020-03-23 17:50:44 +0000 |
commit | e114a35457b3b0f8041d794a04ebeb33c1009253 (patch) | |
tree | c92650a6b8a4a7b3484486b91f2f801a84281c73 | |
parent | 933dea5052e42f7edacd9f43773e8d2a8446789e (diff) | |
download | inotify-tools-e114a35457b3b0f8041d794a04ebeb33c1009253.zip inotify-tools-e114a35457b3b0f8041d794a04ebeb33c1009253.tar.gz inotify-tools-e114a35457b3b0f8041d794a04ebeb33c1009253.tar.bz2 |
Only call git clean -fdx if specified
Avoid accidental deletion of files
-rwxr-xr-x | build_and_test.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/build_and_test.sh b/build_and_test.sh index 5d9f3c1..40c2255 100755 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -2,10 +2,13 @@ set -e -j=3 +j=10 printf "gcc build\n" -git clean -fdx 2>&1 +if [ "$1" == "clean" ]; then + git clean -fdx 2>&1 +fi + export CC=gcc ./autogen.sh ./configure @@ -27,7 +30,10 @@ make -j$j cd - printf "\nclang build\n" -git clean -fdx 2>&1 +if [ "$1" == "clean" ]; then + git clean -fdx 2>&1 +fi + export CC=clang ./autogen.sh ./configure |