|
|
@ -176,9 +176,12 @@ while true; do
|
|
|
|
FORMATTED_COMMITMSG="$(sed "s/%d/$(date "$DATE_FMT")/" <<< "$COMMITMSG")" # splice the formatted date-time into the commit message
|
|
|
|
FORMATTED_COMMITMSG="$(sed "s/%d/$(date "$DATE_FMT")/" <<< "$COMMITMSG")" # splice the formatted date-time into the commit message
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cd $TARGETDIR # CD into right dir
|
|
|
|
cd $TARGETDIR # CD into right dir
|
|
|
|
|
|
|
|
STATUS=$($GIT status -s)
|
|
|
|
|
|
|
|
if [ -n "$STATUS" ]; then # only commit if status shows tracked changes.
|
|
|
|
$GIT add $GIT_ADD_ARGS # add file(s) to index
|
|
|
|
$GIT add $GIT_ADD_ARGS # add file(s) to index
|
|
|
|
$GIT commit $GIT_COMMIT_ARGS -m"$FORMATTED_COMMITMSG" # construct commit message and commit
|
|
|
|
$GIT commit $GIT_COMMIT_ARGS -m"$FORMATTED_COMMITMSG" # construct commit message and commit
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$PUSH_CMD" ]; then $PUSH_CMD; fi
|
|
|
|
if [ -n "$PUSH_CMD" ]; then $PUSH_CMD; fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|