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
|
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
|
case "${1}" in
|
||||||
|
|
||||||
-r | --remove )
|
-r | --remove )
|
||||||
@ -91,6 +105,9 @@ case "${1}" in
|
|||||||
mic )
|
mic )
|
||||||
mic;;
|
mic;;
|
||||||
|
|
||||||
|
trb)
|
||||||
|
trb;;
|
||||||
|
|
||||||
test )
|
test )
|
||||||
echo ${linkDir};;
|
echo ${linkDir};;
|
||||||
* ) printf "\n${0} <command>\n"
|
* ) printf "\n${0} <command>\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user