From ad34edc514f73c8ba87454b355686a9c462f3254 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 18 Jun 2024 22:24:59 +0200 Subject: [PATCH] Fix non-functioning update script --- archiso/scripts/update.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/archiso/scripts/update.sh b/archiso/scripts/update.sh index 797ccaef..0179923e 100755 --- a/archiso/scripts/update.sh +++ b/archiso/scripts/update.sh @@ -1,10 +1,12 @@ pushd "${BASH_SOURCE%/*}" > /dev/null; +patchFile="$(realpath -m valhalla.patch)"; . ./template-path.sh; -cp -r "$(templatePath)"/* ..; -if [ -f "$rootDir/valhalla.patch" ]; +if [ -f "$patchFile" ]; then - git apply ./valhalla.patch; + pushd .. > /dev/null; + git apply "$patchFile"; + popd > /dev/null; fi; popd > /dev/null;