From 17ee82cbbabd272922c6b21e8822501c2b5b0780 Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 19 Jul 2018 16:06:11 -0700 Subject: [PATCH] symlinker.sh: add loadsshkeys.sh Former-commit-id: b1e8a12a0404f5759fbb1011884bf5559e602637 --- symlinker.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/symlinker.sh b/symlinker.sh index f97f9c5..d7dbb6a 100755 --- a/symlinker.sh +++ b/symlinker.sh @@ -28,6 +28,20 @@ function idd(){ fi +} + +function loadsshkeys(){ + name="loadsshkeys" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking ${pwd}/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}.sh ${linkDir}/${name} + else + printf "${name} already exists in ${linkDir}\n" + fi + + } function mic(){