diff --git a/usr/local/bin/install_to_disk.sh b/usr/local/bin/install_to_disk.sh index bfac585..b5f0491 100755 --- a/usr/local/bin/install_to_disk.sh +++ b/usr/local/bin/install_to_disk.sh @@ -7,7 +7,7 @@ set -euo pipefail # Initialize logging LOGDIR="/home/stormux/Logs" -LOGFILE="$LOGDIR/install_to_disk_$(date +%Y-%m-%d_%H-%M-%S).log" +LOGFILE="$LOGDIR/install_to_disk.log" mkdir -p "$LOGDIR" # Logging function @@ -23,6 +23,8 @@ error_exit() { log_error "$1" echo "Installation failed. Log file: $LOGFILE" restore_speech + echo + read -rp "Press enter to continue..." exit 1 } @@ -98,6 +100,8 @@ detect_partitions() { while IFS= read -r line; do local part fstype label part=$(echo "$line" | awk '{print $1}') + # Remove lsblk tree characters that break mount commands + part="${part//[├─└│]/}" fstype=$(echo "$line" | awk '{print $2}') label=$(echo "$line" | awk '{print $3}')