list availible branches for FTL

Signed-off-by: Adam Warner <adamw@rner.email>
pull/1567/head
Adam Warner 7 years ago
parent 031c6428d5
commit 247d3ed729
No known key found for this signature in database
GPG Key ID: 03843F6C65554B22

@ -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…
Cancel
Save