Skip to content

Commit 7303f22

Browse files
committed
bugfix for upload to release script
1 parent 8138229 commit 7303f22

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

topo_map_processor/bash_scripts/upload_to_release.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ for release in $RELEASES_TO_PROCESS; do
8181
fi
8282
done
8383

84-
if [ -z "$EXISTING_ASSETS_WITH_RELEASES" ]; then
85-
echo "Could not fetch any assets. This could mean the releases do not have assets, or you lack permissions."
86-
fi
87-
8884
# Determine available releases and their current asset counts
8985
AVAILABLE_RELEASES=()
9086
AVAILABLE_ASSET_COUNTS=()
@@ -107,8 +103,11 @@ echo "Starting upload process from folder '$FOLDER'..."
107103
# Find all files in the folder that are not yet in any release and loop through them.
108104
find "${FOLDER}" -type f | grep "^.*\.${EXT}$" | while read -r FILE_PATH; do
109105
FILENAME=$(basename "$FILE_PATH")
106+
echo "Processing file: $FILENAME"
110107

108+
set +o pipefail
111109
RELEASE_FOR_ASSET=$(echo -n "$EXISTING_ASSETS_WITH_RELEASES" | grep "^${FILENAME} " | head -n 1 | awk '{print $2}')
110+
set -o pipefail
112111

113112
if [ -n "$RELEASE_FOR_ASSET" ]; then
114113
# Asset exists

0 commit comments

Comments
 (0)