From e561b9ddf3cdd0b292ecbd1052690978ae0e59e1 Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 21 Jun 2018 22:30:14 -0700 Subject: [PATCH] symlinker.sh: add staticmic.sh Former-commit-id: d7cfa3331b43516d4e400db1ffce56399ff9cf60 --- symlinker.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/symlinker.sh b/symlinker.sh index f2320aa..f97f9c5 100755 --- a/symlinker.sh +++ b/symlinker.sh @@ -30,6 +30,19 @@ function idd(){ } +function mic(){ + name="staticmic" + 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 svc(){ name="svc" @@ -56,6 +69,9 @@ case "${1}" in svc ) svc;; + mic ) + mic;; + test ) echo ${linkDir};; * ) printf "\n${0} \n"