Disable checkout function for (official) docker containers (#5416)

This commit is contained in:
Adam Warner 2023-10-08 16:08:36 +01:00 committed by GitHub
commit 9622265c8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
pihole
View file

@ -413,6 +413,9 @@ tailFunc() {
}
piholeCheckoutFunc() {
if [ -n "${DOCKER_VERSION}" ]; then
unsupportedFunc
else
if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then
echo "Usage: pihole checkout [repo] [branch]
Example: 'pihole checkout master' or 'pihole checkout core dev'
@ -433,6 +436,7 @@ Branches:
source "${PI_HOLE_SCRIPT_DIR}"/piholeCheckout.sh
shift
checkout "$@"
fi
}
tricorderFunc() {