diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-04-15 16:05:55 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-04-15 16:10:13 -0400 |
commit | 4ea2da50710c7897fd8ae7b46d27a69cce3f4a40 (patch) | |
tree | 65dc01558e7e9322ac629a3e184a61d13b1255c9 | |
parent | aa10033e77e9c095e7b66bf13a51ce0ff5c66e50 (diff) |
added install guard
-rwxr-xr-x | install.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,8 @@ if [ $(id -u) -ne 0 ] then echo "Please run as root" exit fi +if [ ! -e installed ]; then +touch installed SCRIPTPATH=$(dirname "$(readlink -f "$0")") if [ -z $1 ]; then @@ -41,6 +43,7 @@ pacstrap /mnt base genfstab -U /mnt >> /mnt/etc/fstab cd $SCRIPTPATH/.. cp -r dotfiles /mnt +fi #echo "arch-chroot into the new system and run dotfiles/build.sh" arch-chroot /mnt << EOF cd dotfiles |