From 85d3760dc7ac02683612bcd37aac47feedb6220c Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 10 Jan 2022 21:46:42 -0600 Subject: [PATCH] Add log files for scripts --- archtitus.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/archtitus.sh b/archtitus.sh index 461a58e..e18bdd6 100755 --- a/archtitus.sh +++ b/archtitus.sh @@ -1,7 +1,6 @@ #!/bin/bash # Find the name of the folder the scripts are in - SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" echo -ne " ------------------------------------------------------------------------- @@ -16,12 +15,12 @@ echo -ne " ------------------------------------------------------------------------- Scripts are in directory named ArchTitus " - bash startup.sh + ( bash startup.sh )|& tee startup.log source $SCRIPT_DIR/setup.conf - bash 0-preinstall.sh - arch-chroot /mnt /root/ArchTitus/1-setup.sh - arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/2-user.sh - arch-chroot /mnt /root/ArchTitus/3-post-setup.sh + ( bash 0-preinstall.sh )|& tee 0-preinstall.log + ( arch-chroot /mnt /root/ArchTitus/1-setup.sh )|& tee 1-setup.log + ( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/2-user.sh )|& tee 2-user.log + ( arch-chroot /mnt /root/ArchTitus/3-post-setup.sh )|& tee 3-post-setup.log echo -ne " -------------------------------------------------------------------------