From e5a52b90ca029547a3f4525c748b81414b99df7d Mon Sep 17 00:00:00 2001 From: mollusk Date: Fri, 31 Aug 2018 21:31:58 -0700 Subject: [PATCH] symlinker.sh: add trb Former-commit-id: 643fcceb873a9ef781f77e0dc5467eb997437e14 --- symlinker.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/symlinker.sh b/symlinker.sh index b9caa6f..97aa46e 100755 --- a/symlinker.sh +++ b/symlinker.sh @@ -70,6 +70,20 @@ function svc(){ fi } +function trb(){ + name="trb" + 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 + + +} + case "${1}" in -r | --remove ) @@ -91,6 +105,9 @@ case "${1}" in mic ) mic;; + trb) + trb;; + test ) echo ${linkDir};; * ) printf "\n${0} \n"