From f0c268d7547fc3fd2c71a43f19679e921cbd92a7 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Sun, 20 Sep 2020 18:27:24 -0400 Subject: fixing linker.sh to only exit on errors --- linker.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linker.sh b/linker.sh index 3ec63c3..9a62a85 100755 --- a/linker.sh +++ b/linker.sh @@ -5,7 +5,7 @@ # Save dir of where we start from to link back to DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd ~ || echo "Unable to change directory" && exit +cd ~ || (echo "Unable to change directory" && exit) # Start with .bashrc if [[ -e .bashrc ]] ; then @@ -38,13 +38,13 @@ fi ln -s "$DIR"/.conkyrc ~/.conkyrc # .config stuff -cd ~ || echo "Unable to change directory" && exit +cd ~ || (echo "Unable to change directory" && exit) if [[ ! -e .config ]] ; then mkdir .config fi # Neovim -cd .config || echo "Unable to access config directory" && exit +cd .config || (echo "Unable to access config directory" && exit) if [[ -e nvim ]] ; then mv nvim nvim.original else -- cgit v1.2.3