vpp/test/scripts/git_pull_or_clean.sh
Klement Sekera a657e4e7c9 make test: tweak helper scripts
Change-Id: Iee6016757e45c832e8868f0bdcfd4192dd3380c8
Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-04-03 13:58:28 +00:00

9 lines
118 B
Bash
Executable File

#!/bin/sh
CMD='git clean -dfX */'
if git pull | grep -v 'Already up-to-date.'
then
echo "Executing $CMD"
$CMD
fi