feature/tech #3

Merged
jtorre merged 8 commits from feature/tech into develop 2023-06-03 14:42:00 -04:00
Showing only changes of commit 19f92c5102 - Show all commits

View File

@ -24,8 +24,12 @@ bcli() {
umount $HOME/tech
fi
rmdir $HOME/tech
elif [ "$#" -eq 0 ]; then
docker exec -u $(id -u) -it "bcli-$USER" /bin/bash
elif [ "$#" -eq 0 ]; then
WD="/host"
if [[ "$PWD" = "$HOME/"* ]]; then
WD="/host${PWD#$HOME}"
fi
docker exec -u $(id -u) -w $WD -it "bcli-$USER" /bin/bash
else
if [ "$1" != "--help" ]; then
echo "error: unrecognized command '$1'"