diff --git a/scripts/backfill_from_cloudsmith.sh b/scripts/backfill_from_cloudsmith.sh index 1babb074..74b271fb 100755 --- a/scripts/backfill_from_cloudsmith.sh +++ b/scripts/backfill_from_cloudsmith.sh @@ -563,6 +563,7 @@ publish_apk_file() { log "apk stage: $filename ($arch) -> ${archdir}/${alpine_filename}" if [ "$APPLY" -eq 1 ]; then + mkdir -p "$(dirname "$target")" cp "$file" "$target" else log "DRY-RUN would copy $filename to staging ${archdir}/${alpine_filename}"