From 4ea2da50710c7897fd8ae7b46d27a69cce3f4a40 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Wed, 15 Apr 2020 16:05:55 -0400
Subject: added install guard
---
install.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/install.sh b/install.sh
index 816857b..43d59e8 100755
--- a/install.sh
+++ b/install.sh
@@ -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
--
cgit