fix publish output

This commit is contained in:
sawka 2024-09-13 18:12:49 -07:00
parent 1de9cd4468
commit a541c1ad10

View File

@ -17,5 +17,7 @@ OUTPUT=$(aws s3 cp s3://$ORIGIN s3://$DESTINATION --recursive --profile $AWS_PRO
for line in $OUTPUT; do
PREFIX=${line%%${DESTINATION}*}
SUFFIX=${line:${#PREFIX}}
echo "https://$SUFFIX"
if [[ -n "$SUFFIX" ]]; then
echo "https://$SUFFIX"
fi
done