This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Arch Linux install script. | |
| # (based on: https://github.com/arceryz/archlinux-installer-script/blob/master/archstrap.sh - Parcevval @2023) | |
| # EFI only | |
| [ -z "$1" ] && printf "Usage: Provide only the drive to install to (i.e /dev/sda, see lsblk)\n\n./archstrap.sh [DRIVE]\n\n" && exit | |
| [ ! -b "$1" ] && printf "Drive $1 is not a valid block device.\n" && exit | |
| printf "\nReady to install Arch on $1.\nContinue? (y/n): " && read CERTAIN | |
| [ "$CERTAIN" != "y" ] && printf "Abort." && exit |