summary refs log tree commit diff stats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh24
1 files changed, 21 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 97cdb32..d9d8959 100755
--- a/install.sh
+++ b/install.sh
@@ -8,11 +8,26 @@ cd $SCRIPTPATH
 # Ignore list
 IGNORE=("bin" "wallpaper" "install.sh" ".git" "scripts")
 
-# Install important packages
-sudo pacman -S stow
+printf "Start installing dotfiles\n\n"
+printf "Ignore: %s\n" "${IGNORE[@]}"
+printf "\n"
+
+# Install stow, if not installed
+pacman -Q | grep stow 1>/dev/null
+if [ $? != 0 ]; then
+    printf "Installing stow\n"
+    sudo pacman -S stow
+else
+    printf "Stow is already installed\n"
+fi
 
 # Prevent from symlinking whole directory
-mkdir ~/.gnupg
+if [ ! -d "/home/chris/.gnupg" ]; then
+    printf "Creating ~/.gnupg\n\n"
+    mkdir ~/.gnupg
+else
+    printf "~/.gnupg is already available\n\n"
+fi
 
 # Setting up all the symlinks
 max=${#IGNORE[@]}
@@ -33,6 +48,9 @@ for f in *; do
 
     # Create symlink if not ignored
 	if [[ $ignored == false ]]; then
+        printf "Symlink for $f created\n"
 		stow "$f"
 	fi
 done
+
+printf "\nDone\n"