symlinker.sh: add trb

Former-commit-id: 643fcceb873a9ef781f77e0dc5467eb997437e14
This commit is contained in:
mollusk 2018-08-31 21:31:58 -07:00
parent 9fcb068dc7
commit e5a52b90ca

View File

@ -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} <command>\n"