PortValhalla/archiso/scripts/update.sh

14 lines
282 B
Bash
Raw Normal View History

2024-06-18 20:02:14 +00:00
pushd "${BASH_SOURCE%/*}" > /dev/null;
2024-06-18 20:24:59 +00:00
patchFile="$(realpath -m valhalla.patch)";
2024-06-18 20:02:14 +00:00
. ./template-path.sh;
2024-06-20 14:57:15 +00:00
cp -r "$(templatePath)"/* ..
2024-06-18 20:02:14 +00:00
2024-06-18 20:24:59 +00:00
if [ -f "$patchFile" ];
2024-06-18 20:02:14 +00:00
then
2024-06-18 20:24:59 +00:00
pushd .. > /dev/null;
2024-06-20 14:57:15 +00:00
git apply --directory=archiso "$patchFile";
2024-06-18 20:24:59 +00:00
popd > /dev/null;
2024-06-18 20:02:14 +00:00
fi;
popd > /dev/null;