mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-22 06:03:43 +00:00
Use mapfile
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
d9e4e1111f
commit
a023195c4d
1 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@ checkout() {
|
||||||
echo -e "${OVER} ${CROSS} $str"
|
echo -e "${OVER} ${CROSS} $str"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
corerefs=("$(get_available_refs "${PI_HOLE_FILES_DIR}")")
|
mapfile -t corerefs < <(get_available_refs "${PI_HOLE_FILES_DIR}")
|
||||||
|
|
||||||
if [[ "${corerefs[*]}" == *"master"* ]]; then
|
if [[ "${corerefs[*]}" == *"master"* ]]; then
|
||||||
echo -e "${OVER} ${TICK} $str"
|
echo -e "${OVER} ${TICK} $str"
|
||||||
|
@ -226,7 +226,7 @@ checkout() {
|
||||||
echo -e "${OVER} ${CROSS} $str"
|
echo -e "${OVER} ${CROSS} $str"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
webrefs=("$(get_available_refs "${webInterfaceDir}")")
|
mapfile -t webrefs < <(get_available_refs "${webInterfaceDir}")
|
||||||
|
|
||||||
if [[ "${webrefs[*]}" == *"master"* ]]; then
|
if [[ "${webrefs[*]}" == *"master"* ]]; then
|
||||||
echo -e "${OVER} ${TICK} $str"
|
echo -e "${OVER} ${TICK} $str"
|
||||||
|
|
Loading…
Reference in a new issue