From 037737d6534c8e9e66f83d0ba7a2d1a0c7ffff40 Mon Sep 17 00:00:00 2001 From: Jan Piskvor Martinec Date: Tue, 23 Apr 2019 16:02:25 +0200 Subject: [PATCH] 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 --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 94377647..c915df33 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1560,7 +1560,7 @@ update_package_cache() { else # show an error and exit 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 fi }