This commit is contained in:
parent
35cbece25a
commit
69f1517235
@ -6,10 +6,20 @@ bcli() {
|
|||||||
docker stop bcli-develop > /dev/null
|
docker stop bcli-develop > /dev/null
|
||||||
echo "bcli-develop stopped"
|
echo "bcli-develop stopped"
|
||||||
elif [ "$1" = "mount" ]; then
|
elif [ "$1" = "mount" ]; then
|
||||||
mkdir -p $HOME/tech
|
if [ -z "$BROCCOLI_USER" ]; then
|
||||||
sshfs $BROCCOLI_USER@broccolimicro.io:/opt/tech $HOME/tech/
|
echo "Please set the BROCCOLI_USER environment variable for ssh access."
|
||||||
|
else
|
||||||
|
mkdir -p $HOME/tech
|
||||||
|
sshfs $BROCCOLI_USER@broccolimicro.io:/opt/tech $HOME/tech/
|
||||||
|
fi
|
||||||
elif [ "$1" = "unmount" ]; then
|
elif [ "$1" = "unmount" ]; then
|
||||||
umount $HOME/tech
|
shift
|
||||||
|
if [ "$1" = "-f" ]; then
|
||||||
|
pkill -KILL sshfs
|
||||||
|
fusermount -u $HOME/tech
|
||||||
|
else
|
||||||
|
umount $HOME/tech
|
||||||
|
fi
|
||||||
rmdir $HOME/tech
|
rmdir $HOME/tech
|
||||||
else
|
else
|
||||||
docker exec -u $(id -u):$(id -g) -it bcli-develop /bin/bash
|
docker exec -u $(id -u):$(id -g) -it bcli-develop /bin/bash
|
||||||
|
Loading…
Reference in New Issue
Block a user