aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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