Used wrong toggle for checking if var is not empty

This commit is contained in:
2025-12-02 13:32:54 -05:00
parent 62e9b183cc
commit d6ae96507b

View File

@@ -59,7 +59,7 @@ runs:
ls ${RPM_PATH}
REGULAR_PACKAGE=$(find ${RPM_PATH} -maxdepth 1 -type f \( -name "${PACKAGE_NAME}*\.rpm" -a ! -name "*-devel*\.rpm" \) | head -1)
DEVEL_PACKAGE=$(find ${RPM_PATH} -maxdepth 1 -type f -name "${PACKAGE_NAME}-devel*\.rpm" | head -1)
if [[ -z "$REGULAR_PACKAGE" ]]; then
if [[ -n "$REGULAR_PACKAGE" ]]; then
echo "Found regular package at ${REGULAR_PACKAGE}, uploading it."
curl --user ${UPLOAD_USER}:${UPLOAD_USER_TOKEN} \
--upload-file ${REGULAR_PACKAGE} \
@@ -67,7 +67,7 @@ runs:
else
echo "No regular package found, skipping..."
fi
if [[ -z "$DEVEL_PACKAGE" ]]; then
if [[ -n "$DEVEL_PACKAGE" ]]; then
echo "Found devel package at ${DEVEL_PACKAGE}, uploading it."
curl --user ${UPLOAD_USER}:${UPLOAD_USER_TOKEN} \
--upload-file ${DEVEL_PACKAGE} \