1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh echo $* case "$1" in fetch) echo "Fake git error" exit 1 ;; version) echo "git version 1.0.0" exit 0 ;; esac