symlinker.sh: add trb
Former-commit-id: 643fcceb873a9ef781f77e0dc5467eb997437e14
This commit is contained in:
parent
9fcb068dc7
commit
e5a52b90ca
17
symlinker.sh
17
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} <command>\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user