mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-15 11:59:04 +00:00
Disable checkout function for (official) docker containers
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
e87d03a5ef
commit
044e856e6b
1 changed files with 21 additions and 17 deletions
4
pihole
4
pihole
|
@ -413,6 +413,9 @@ tailFunc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
piholeCheckoutFunc() {
|
piholeCheckoutFunc() {
|
||||||
|
if [ -n "${DOCKER_VERSION}" ]; then
|
||||||
|
unsupportedFunc
|
||||||
|
else
|
||||||
if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then
|
if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then
|
||||||
echo "Usage: pihole checkout [repo] [branch]
|
echo "Usage: pihole checkout [repo] [branch]
|
||||||
Example: 'pihole checkout master' or 'pihole checkout core dev'
|
Example: 'pihole checkout master' or 'pihole checkout core dev'
|
||||||
|
@ -433,6 +436,7 @@ Branches:
|
||||||
source "${PI_HOLE_SCRIPT_DIR}"/piholeCheckout.sh
|
source "${PI_HOLE_SCRIPT_DIR}"/piholeCheckout.sh
|
||||||
shift
|
shift
|
||||||
checkout "$@"
|
checkout "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
tricorderFunc() {
|
tricorderFunc() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue