zuul/tests/fixtures/git_fetch_error.sh

18 lines
210 B
Bash
Executable File

#!/bin/sh
echo $*
case "$1" in
fetch)
if [ -f ./stamp1 ]; then
touch ./stamp2
exit 0
fi
touch ./stamp1
exit 1
;;
version)
echo "git version 1.0.0"
exit 0
;;
esac