vpp/test/scripts/git_pull_or_clean.sh

9 lines
118 B
Bash
Raw Normal View History

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