git-release: function usage doesn't exist, ignore unknown argument instead

This commit is contained in:
spacewander 2017-12-06 23:45:38 +08:00
parent 3b21b87036
commit 199364e932

View file

@ -38,7 +38,6 @@ if test $# -gt 0; then
-r) remote=$2; shift ;;
-m) msg=$2; shift ;;
--) shift; hook_args="$hook_args $*"; break;;
*) usage ;;
esac
shift
done