mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Show $UPDATE_PKG_CACHE content in error message.
Fixes the typo in update_package_cache(), where the error message contained the color code twice, instead of the $UPDATE_PKG_CACHE text. Signed-off-by: Jan Piskvor Martinec <github@piskvor.org>
This commit is contained in:
parent
42c7653e99
commit
037737d653
1 changed files with 1 additions and 1 deletions
|
@ -1560,7 +1560,7 @@ update_package_cache() {
|
||||||
else
|
else
|
||||||
# show an error and exit
|
# show an error and exit
|
||||||
printf "%b %b %s\\n" "${OVER}" "${CROSS}" "${str}"
|
printf "%b %b %s\\n" "${OVER}" "${CROSS}" "${str}"
|
||||||
printf " %bError: Unable to update package cache. Please try \"%s\"%b" "${COL_LIGHT_RED}" "${COL_LIGHT_RED}" "${COL_NC}"
|
printf " %bError: Unable to update package cache. Please try \"%s\"%b" "${COL_LIGHT_RED}" "${UPDATE_PKG_CACHE}" "${COL_NC}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue