X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fscripts%2Fgit_pull_or_clean.sh;h=b119a9ccb6014bb5c2e9bd4b6ef5fffadf48b1db;hb=ae8098350cb7b96f7495fa4d4180238064256e14;hp=489091f9b82ac0edca25503debad2a572ef9786d;hpb=799e26d5bdf6b74ab615644e0cd291de6e352989;p=vpp.git diff --git a/test/scripts/git_pull_or_clean.sh b/test/scripts/git_pull_or_clean.sh index 489091f9b82..b119a9ccb60 100755 --- a/test/scripts/git_pull_or_clean.sh +++ b/test/scripts/git_pull_or_clean.sh @@ -1,3 +1,8 @@ #!/bin/sh +CMD='git clean -dfX */' -git pull | grep -q -v 'Already up-to-date.' || git clean -dfX */ +if git pull | grep -v 'Already up-to-date.' +then + echo "Executing $CMD" + $CMD +fi