#!/bin/sh
# PORTWARE-CODESYS-KIT
# PORTWARE Connect for CODESYS: every commit goes on to PORTWARE Git by itself.
# A push that fails never undoes the commit: it is kept and goes with the next
# one (git portware status says what waits). It runs the bridge install.sh copied
# into the Git folder, never the one a pushed commit could have changed.
[ -z "${PORTWARE_CODESYS_SKIP:-}" ] || exit 0
RUN=$(git rev-parse --git-path portware-codesys) || exit 0
[ -f "$RUN/bridge.sh" ] || exit 0
sh "$RUN/bridge.sh" push --hook
exit 0
