summaryrefslogtreecommitdiffstats
path: root/test/scripts/git_pull_or_clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/git_pull_or_clean.sh')
-rwxr-xr-xtest/scripts/git_pull_or_clean.sh7
1 files changed, 6 insertions, 1 deletions
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