diff --git a/evomaintenance.sh b/evomaintenance.sh index b7ac91f..1d86743 100755 --- a/evomaintenance.sh +++ b/evomaintenance.sh @@ -113,7 +113,6 @@ print_options() { } hook_commit() { - GIT_COMMITS="" if test -x "${GIT_BIN}"; then # loop on possible directories managed by GIT @@ -195,8 +194,9 @@ test -f /etc/evomaintenance.cf && . /etc/evomaintenance.cf [ -n "${DRY_RUN}" ] || DRY_RUN=0 [ -n "${VERBOSE}" ] || VERBOSE=0 -# initialize variable +# initialize variables MESSAGE="" +GIT_COMMITS="" # Parse options # based on https://gist.github.com/deshion/10d3cb5f88a21671e17a