This commit is contained in:
Michael Grote 2024-07-25 23:52:54 +02:00
parent 2f73d17ae0
commit f25ce8d59f

View file

@ -21,13 +21,11 @@ if ! [ -f "./id_ed25519" ]; then
exit 1 exit 1
fi fi
echo -e "${GREEN}Pull image...${RESET}"
docker pull --quiet ${IMAGE} docker pull --quiet ${IMAGE}
echo -e "${GREEN}Start session...${RESET}"
docker run -it \ docker run -it \
-v $PWD:/ansible-homeserver \ -v $PWD:/ansible-homeserver \
-w /ansible-homeserver ${IMAGE} \ -w /ansible-homeserver ${IMAGE} \
/bin/bash -c "git config --global --add safe.directory /ansible-homeserver && echo Branch: \$(git rev-parse --abbrev-ref HEAD) && /bin/bash" /bin/bash -c "git config --global --add safe.directory /ansible-homeserver && /bin/bash"
# todo shellcheck # todo shellcheck