mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-31 11:10:55 +00:00
list availible branches for FTL
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
031c6428d5
commit
247d3ed729
@ -331,6 +331,10 @@ checkout() {
|
||||
FTLinstall "${binary}" "${path}"
|
||||
else
|
||||
echo " ${CROSS} Requested branch \"${2}\" is not available"
|
||||
ftlbranches=( $(git ls-remote https://github.com/pi-hole/ftl | grep 'heads' | sed 's/refs\/heads\///;s/ //g' | awk '{print $2}') )
|
||||
echo -e " ${INFO} Available branches for FTL are:"
|
||||
for e in "${ftlbranches[@]}"; do echo " - $e"; done
|
||||
exit 1
|
||||
fi
|
||||
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user