mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-14 03:19:19 +00:00
Disable checkout function for (official) docker containers (#5416)
This commit is contained in:
commit
9622265c8d
1 changed files with 21 additions and 17 deletions
38
pihole
38
pihole
|
@ -413,26 +413,30 @@ tailFunc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
piholeCheckoutFunc() {
|
piholeCheckoutFunc() {
|
||||||
if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then
|
if [ -n "${DOCKER_VERSION}" ]; then
|
||||||
echo "Usage: pihole checkout [repo] [branch]
|
unsupportedFunc
|
||||||
Example: 'pihole checkout master' or 'pihole checkout core dev'
|
else
|
||||||
Switch Pi-hole subsystems to a different GitHub branch
|
if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then
|
||||||
|
echo "Usage: pihole checkout [repo] [branch]
|
||||||
|
Example: 'pihole checkout master' or 'pihole checkout core dev'
|
||||||
|
Switch Pi-hole subsystems to a different GitHub branch
|
||||||
|
|
||||||
Repositories:
|
Repositories:
|
||||||
core [branch] Change the branch of Pi-hole's core subsystem
|
core [branch] Change the branch of Pi-hole's core subsystem
|
||||||
web [branch] Change the branch of Web Interface subsystem
|
web [branch] Change the branch of Web Interface subsystem
|
||||||
ftl [branch] Change the branch of Pi-hole's FTL subsystem
|
ftl [branch] Change the branch of Pi-hole's FTL subsystem
|
||||||
|
|
||||||
Branches:
|
Branches:
|
||||||
master Update subsystems to the latest stable release
|
master Update subsystems to the latest stable release
|
||||||
dev Update subsystems to the latest development release
|
dev Update subsystems to the latest development release
|
||||||
branchname Update subsystems to the specified branchname"
|
branchname Update subsystems to the specified branchname"
|
||||||
exit 0
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
source "${PI_HOLE_SCRIPT_DIR}"/piholeCheckout.sh
|
||||||
|
shift
|
||||||
|
checkout "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "${PI_HOLE_SCRIPT_DIR}"/piholeCheckout.sh
|
|
||||||
shift
|
|
||||||
checkout "$@"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tricorderFunc() {
|
tricorderFunc() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue