#!/bin/sh if git cherry-pick {COMMIT} && make build then ~/check_test_case.sh status=$? else status=125 fi # Undo hotfix and exit git reset --hard exit $status