Skip to content

Commit c4d545a

Browse files
tobiasgecimnine
andauthored
Improved check
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
1 parent d0c429c commit c4d545a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ NETBOX_PATH="${NETBOX_PATH-.netbox}"
119119
###
120120
if [ "${2}" != "--push-only" ] && [ -z "${SKIP_GIT}" ]; then
121121
REMOTE_EXISTS=$(git ls-remote --heads --tags "${URL}" "${NETBOX_BRANCH}" | wc -l)
122-
if [ "${REMOTE_EXISTS}" != "1" ]; then
122+
if [ "${REMOTE_EXISTS}" == "0" ]; then
123123
echo "❌ Remote branch '${NETBOX_BRANCH}' not found in '${URL}'; Nothing to do"
124124
if [ -n "${GH_ACTION}" ]; then
125125
echo "::set-output name=skipped::true"

0 commit comments

Comments
 (0)