Skip to content

Commit

Permalink
update filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
b- committed Feb 14, 2024
1 parent fe8049e commit 58d43bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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)]}"
}

###
Expand Down

0 comments on commit 58d43bb

Please sign in to comment.