Stor script name in a variable

This commit is contained in:
Manuel Thalmann 2024-07-13 13:23:16 +02:00
parent 781a44895b
commit 92b0c4c82b

View file

@ -43,9 +43,11 @@ begin
and runHook autologin || true
and begin
set -l script (string escape (getCloneFile (getInstallerScript)))
printf %s\n \
"export CONFIG_MODULE=$(string escape (getCloneFile "$CONFIG_MODULE"))" \
(string escape (getCloneFile (getInstallerScript)))
"export INSTALLER_SCRIPT=$script" \
"$script"
end | chroot "$mountDir" tee /root/.bash_profile > /dev/null
and echo "Setup finished!"