From ed5889c4b8f036f5b5078c0469160079a63986d9 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 22 Nov 2024 23:02:54 +0100 Subject: [PATCH] build: fix local Signed-off-by: AuxXxilium --- img-gen-n.sh | 5 ++--- img-gen-s.sh | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/img-gen-n.sh b/img-gen-n.sh index 63f67e1d..3fe2f752 100755 --- a/img-gen-n.sh +++ b/img-gen-n.sh @@ -5,7 +5,7 @@ set -e # Clean cached Files sudo git clean -fdx -. scripts/func.sh +. scripts/func.sh "${AUX_TOKEN}" # Get extractor, LKM, addons and Modules echo "Get Dependencies" @@ -35,8 +35,6 @@ mkdir -p "/tmp/p3" sudo mount ${LOOPX}p1 "/tmp/p1" sudo mount ${LOOPX}p3 "/tmp/p3" -[[ ! -f "brx/bzImage-arc" || ! -f "brx/initrd-arc" ]] && return 1 - ARC_BUILD="`date +'%y%m%d'`" ARC_VERSION="13.37.dev" ARC_BRANCH="next" @@ -46,6 +44,7 @@ echo "${ARC_BRANCH}" >files/p1/ARC-BRANCH echo "Repack initrd" cp -f "brx/bzImage-arc" "files/p3/bzImage-arc" +[[ ! -f "brx/bzImage-arc" || ! -f "brx/initrd-arc" ]] && exit 1 repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files" diff --git a/img-gen-s.sh b/img-gen-s.sh index 3cfb7433..c12ec8fd 100755 --- a/img-gen-s.sh +++ b/img-gen-s.sh @@ -5,7 +5,7 @@ set -e # Clean cached Files sudo git clean -fdx -. scripts/func.sh +. scripts/func.sh "${AUX_TOKEN}" # Get extractor, LKM, addons and Modules echo "Get Dependencies" @@ -35,8 +35,6 @@ mkdir -p "/tmp/p3" sudo mount ${LOOPX}p1 "/tmp/p1" sudo mount ${LOOPX}p3 "/tmp/p3" -[[ ! -f "brs/bzImage-arc" || ! -f "brs/initrd-arc" ]] && return 1 - ARC_BUILD="`date +'%y%m%d'`" ARC_VERSION="13.37.dev" ARC_BRANCH="stable" @@ -46,6 +44,7 @@ echo "${ARC_BRANCH}" >files/p1/ARC-BRANCH echo "Repack initrd" cp -f "brs/bzImage-arc" "files/p3/bzImage-arc" +[[ ! -f "brs/bzImage-arc" || ! -f "brs/initrd-arc" ]] && exit 1 repackInitrd "brs/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files"