From 58d43bb335398100102abdf3a95690d4c37d2e9b Mon Sep 17 00:00:00 2001 From: bri <284789+b-@users.noreply.github.com> Date: Tue, 13 Feb 2024 21:55:29 -0500 Subject: [PATCH] update filenames --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 787191de5..47869223a 100755 --- a/build.sh +++ b/build.sh @@ -119,7 +119,7 @@ BUILD_IMAGE(){ BUILD_FILE="$(nix build ".#nixosConfigurations.$(_TARGET)@${ARCH//arm/aarch}-${OS}.config.formats.$(_FORMAT)" "${IMAGE_BUILD_FLAGS[@]}")" BASE_FILE="$(basename "${BUILD_FILE}")" CUT_FILE="$(cut -d- -f2- <<<"${BASE_FILE}")" - HASH=$(cut -b5 <<<"${BASE_FILE}") + HASH=$(cut -b-5 <<<"${BASE_FILE}") OUTNAME="build/$(_PREFIX)${HASH}_${TARGET}_${CUT_FILE}" #cp --sparse "${BUILD_FILE}" "${OUTNAME}" ln -vs "${BUILD_FILE}" "${OUTNAME}" @@ -157,8 +157,8 @@ UPLOAD_ARTIFACTS(){ rsync \ -auvLz \ -e "ssh ${SSH_OPTIONS[*]}" \ - "build/${OUTNAME}" - "${UPLOAD_SERVER}":"${DESTDIRS[$(_FORMAT)]}" + "${OUTNAME}" \ + "${UPLOAD_USER}@${UPLOAD_SERVER}:${DESTDIRS[$(_FORMAT)]}" } ###