From 5ca4d4daec44c70e9744d09ac9d191ee38b81ad6 Mon Sep 17 00:00:00 2001 From: bri Date: Tue, 13 Feb 2024 20:15:17 -0500 Subject: [PATCH] better filenames --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 5c0d95083..0fd6f97f7 100755 --- a/build.sh +++ b/build.sh @@ -117,7 +117,9 @@ BUILD_IMAGE(){ mkdir -p build ARCH="$(_ARCH)" BUILD_FILE="$(nix build ".#nixosConfigurations.$(_TARGET)@${ARCH//arm/aarch}-${OS}.config.formats.$(_FORMAT)" "${IMAGE_BUILD_FLAGS[@]}")" - cp "${BUILD_FILE}" "build/" + #BASE_FILE="$(basename "${BUILD_FILE}")" + CUT_FILE="$(cut -d- -f2- <<<"${BUILD_FILE}")" + cp "${BUILD_FILE}" "build/$(_PREFIX)${CUT_FILE}" } LIST_RENAME_BUILD_ARTIFACTS(){