From b8ee6c7e712240613ebaeb94c229637b423d7144 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Tue, 22 Nov 2016 14:09:16 +0100 Subject: [PATCH] POSIX functions... learned it the hard way --- make-links.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make-links.sh b/make-links.sh index 9281095..851cff5 100755 --- a/make-links.sh +++ b/make-links.sh @@ -3,7 +3,7 @@ DIRNAME=`dirname $0` # make-link source target -function make_link { +make_link() { rm -rf $HOME/$2 && ln -s $PWD/$DIRNAME/$1 $HOME/$2 echo `realpath $PWD/$DIRNAME/$1`:'->':`realpath $HOME/$2` @@ -11,7 +11,7 @@ function make_link { } -function main { +main() { make_link zshrc .zshrc make_link vimrc .vimrc