From bd3a7e5c87b79aa18e9bbfbc7592e0300c427413 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 7 Feb 2015 20:24:55 +0100 Subject: [PATCH] Made install script easier to use --- install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 17b6fad..d42886d 100755 --- a/install.sh +++ b/install.sh @@ -1,10 +1,7 @@ #!/bin/bash - -dotfiles="$HOME/$1" - # Show help function show_help { - echo "Specify directory"; + echo "Specify existing directory"; } # Ask user @@ -56,7 +53,9 @@ function symlink { echo "All symlink have been made" } +dotfiles="$1" if [ -z "$1" ]; then show_help; exit 0; fi; +if [ ! -d $1 ]; then show_help; exit 0; fi; cd $dotfiles