mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-09 06:55:13 +02:00
archlinux: Handle reads through new install.sh
This not only fixes the issue where set -x would cause the read line to be altered, but also separates user input from what the install scripts actually do.
This commit is contained in:
12
.archlinux/install-scripts/install.sh
Executable file
12
.archlinux/install-scripts/install.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo -n "Enter a hostname for this machine: "
|
||||
read HOSTNAME
|
||||
|
||||
echo -n "Enter a username for the local account with sudo rights: "
|
||||
read USERNAME
|
||||
|
||||
env HOSTNAME="$HOSTNAME" ./003-configure
|
||||
env USERNAME="$USERNAME" ./004-postinstall
|
Reference in New Issue
Block a user