Skip to content

Commit

Permalink
Use more explicit grep (thanks to @MichaIng)
Browse files Browse the repository at this point in the history
Signed-off-by: ChillerDragon <ChillerDragon@gmail.com>
  • Loading branch information
ChillerDragon committed Jul 7, 2021
1 parent 4bdcad5 commit 994a9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automated install/basic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ os_check() {
local remote_os_domain valid_os valid_version valid_response detected_os detected_version display_warning cmdResult digReturnCode response
remote_os_domain="versions.pi-hole.net"

detected_os=$(grep "\\bID\\b" /etc/os-release | cut -d '=' -f2 | tr -d '"')
detected_os=$(grep '^ID=' /etc/os-release | cut -d '=' -f2 | tr -d '"')
detected_version=$(grep VERSION_ID /etc/os-release | cut -d '=' -f2 | tr -d '"')

cmdResult="$(dig +short -t txt ${remote_os_domain} @ns1.pi-hole.net 2>&1; echo $?)"
Expand Down

0 comments on commit 994a9b8

Please sign in to comment.