Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
MAP: Use explicit address/prefix types in API
[vpp.git]
/
test
/
scripts
/
git_pull_or_clean.sh
diff --git
a/test/scripts/git_pull_or_clean.sh
b/test/scripts/git_pull_or_clean.sh
index
489091f
..
b119a9c
100755
(executable)
--- 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