1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-03-06 19:26:13 +00:00

Print a more helpful message on pihole checkout in docker containers (#5963)

This commit is contained in:
Adam Warner 2025-02-22 22:49:51 +00:00 committed by GitHub
commit bc3c78f4fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
pihole
View File

@ -398,7 +398,10 @@ tailFunc() {
piholeCheckoutFunc() {
if [ -n "${DOCKER_VERSION}" ]; then
unsupportedFunc
echo -e "${CROSS} Function not supported in Docker images"
echo "Please build a custom image following the steps at"
echo "https://github.com/pi-hole/docker-pi-hole?tab=readme-ov-file#building-the-image-locally"
exit 0
else
if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then
echo "Switch Pi-hole subsystems to a different GitHub branch