commit 8049b21348cfaad52fc4383ec8f89b812b8c4cfb
parent 6f4b883c0c1fe38d9f426cebef63172ff62a55e4
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sun, 21 Oct 2018 15:50:04 +0200
Now require dotfiles to be cloned in a specific dir
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/install.sh b/install.sh
@@ -1,4 +1,9 @@
#!/bin/bash
+if [ $(pwd) != "$HOME/.dotfiles" ]; then
+ echo "Please clone this directory as $HOME/.dotfiles."
+ exit 1
+fi
+
if [[ $(uname -s) == "Darwin" ]]; then
echo "Setting up your Mac..."
if ! command -v brew &> /dev/null; then