aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-15 16:05:55 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-15 16:10:13 -0400
commit4ea2da50710c7897fd8ae7b46d27a69cce3f4a40 (patch)
tree65dc01558e7e9322ac629a3e184a61d13b1255c9 /install.sh
parentaa10033e77e9c095e7b66bf13a51ce0ff5c66e50 (diff)
added install guard
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh3
1 files changed, 3 insertions, 0 deletions
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