* Add helptext for pihole checkout ftl

* Only attempt to install FTL if branch was found
* ~~corebranches~~ webbranches (web branches now actually listed)

Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
Adam Warner 2017-07-16 13:22:59 +01:00
parent 783f50657b
commit f2e9d585f7
No known key found for this signature in database
GPG key ID: 03843F6C65554B22
2 changed files with 7 additions and 7 deletions

View file

@ -303,12 +303,12 @@ checkout() {
fi fi
webbranches=($(get_available_branches "${webInterfaceDir}")) webbranches=($(get_available_branches "${webInterfaceDir}"))
if [[ "${corebranches[@]}" == *"master"* ]]; then if [[ "${webbranches[@]}" == *"master"* ]]; then
echo -e "${OVER} ${TICK} $str echo -e "${OVER} ${TICK} $str
${INFO} ${#webbranches[@]} branches available for Web Admin" ${INFO} ${#webbranches[@]} branches available for Web Admin"
else else
# Print STDERR output from get_available_branches # Print STDERR output from get_available_branches
echo -e "${OVER} ${CROSS} $str\n\n${corebranches[*]}" echo -e "${OVER} ${CROSS} $str\n\n${webbranches[*]}"
exit 1 exit 1
fi fi
@ -329,12 +329,11 @@ checkout() {
if check_download_exists "$path"; then if check_download_exists "$path"; then
echo " ${TICK} Branch ${2} exists" echo " ${TICK} Branch ${2} exists"
FTLinstall "${binary}" "${path}"
else else
echo " ${CROSS} Requested branch \"${2}\" is not available" echo " ${CROSS} Requested branch \"${2}\" is not available"
fi fi
FTLinstall "${binary}" "${path}"
else else
echo -e " ${INFO} Requested option \"${1}\" is not available" echo -e " ${INFO} Requested option \"${1}\" is not available"
exit 1 exit 1

1
pihole
View file

@ -535,6 +535,7 @@ 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 Admin Console subsystem web [branch] Change the branch of Admin Console 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