mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix publish output
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user