1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 04:30:55 +00:00

Merge pull request #4292 from yubiuser/sudo_apt

Add sudo to apt-get recommendation
This commit is contained in:
DL6ER 2021-08-29 12:55:22 +02:00 committed by GitHub
commit b97f76e678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1578,7 +1578,7 @@ update_package_cache() {
else else
# Otherwise, show an error and exit # Otherwise, 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}" "${UPDATE_PKG_CACHE}" "${COL_NC}" printf " %bError: Unable to update package cache. Please try \"%s\"%b" "${COL_LIGHT_RED}" "sudo ${UPDATE_PKG_CACHE}" "${COL_NC}"
return 1 return 1
fi fi
} }