diff --git a/build_online_iso.sh b/build_online_iso.sh index 14af35f..6bd9475 100755 --- a/build_online_iso.sh +++ b/build_online_iso.sh @@ -57,20 +57,30 @@ echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >>"$cache_dir/airootfs/etc/sudoers.d/9 # We add in our auto-start applications # First we'll check for an active internet connection # Then we'll start the omarchy installer -cat <<-_EOF_ | tee $cache_dir/airootfs/root/.automated_script.sh +cat <<-'_EOF_' | tee "$cache_dir/airootfs/root/.automated_script.sh" #!/usr/bin/env bash + set -euo pipefail + + if [[ $(tty) == "/dev/tty1" ]]; then + sh ./check_connectivity.sh + sh ./installer - if [[ \$(tty) == "/dev/tty1" ]]; then - sh ./check_connectivity.sh && \ - sh ./installer && \ archinstall \ --config user_configuration.json \ --creds user_credentials.json \ - --silent && \ - export OMARCHY_USER=\`ls /mnt/home/\` && \ - export OMARCHY_USER_NAME=$(