diff options
Diffstat (limited to 'main/aports-build/aports-build')
-rw-r--r-- | main/aports-build/aports-build | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/aports-build/aports-build b/main/aports-build/aports-build index 7ccbe03d1..8bc1befd6 100644 --- a/main/aports-build/aports-build +++ b/main/aports-build/aports-build @@ -66,6 +66,7 @@ new_release() { local new=$1 local target="all-release" local yaml=latest-releases.yaml + local txt=.latest.txt if [ "$rel" = "edge" ]; then target="edge" fi @@ -79,10 +80,9 @@ new_release() { fi sh mklatest.sh || return 1 ssh $upload_host mkdir -p "${upload_iso#${upload_host}:}" - if ! [ -e "$yaml" ]; then - yaml="" - fi - rsync -ruv $yaml .latest.txt *"$new"* "$upload_iso" || return 1 + [ -e "$yaml" ] || yaml="" + [ -e "$txt" ] || txt="" + rsync -ruv $yaml $txt *"$new"* "$upload_iso" || return 1 sudo apk del .alpine-release mv current previous return 0 |