Redirect CONFIG_NAME variable properly

This commit is contained in:
Manuel Thalmann 2024-09-12 21:47:29 +02:00
parent 5dc8d6d3b4
commit aa311a5ad5

View file

@ -62,7 +62,13 @@ function runSetup
and begin
set -l script (string escape (getCloneFile (getInstallerScript)))
wrapScript "INSTALLER_SCRIPT=$(string escape "$script") $script"
wrapScript (
string join " " \
"INSTALLER_SCRIPT=$(string escape "$script")" \
"CONFIG_NAME=$(string escape "$CONFIG_NAME")" \
(string escape $script))
end | runChroot "$mountDir" tee /root/.bash_profile > /dev/null
and echo "Setup finished!"