diff --git a/CHANGELOG.md b/CHANGELOG.md index 459e089..9dfa7ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## CHANGELOG: +* v2.5a - Fixed issue with [: ==: unary operator expected errors * v2.6 - Added Blackarch Linux support * v2.6 - Added $BROWSER variable to set default browser * v2.5g - Updated README with update command diff --git a/sniper b/sniper index f60efb8..6861c69 100755 --- a/sniper +++ b/sniper @@ -130,7 +130,10 @@ GOOHAK="1" # DEFAULT IS "1" (ENABLED) ENABLE_AUTO_UPDATES="1" -# CHECK IF DISTRO IS BLACKARCH +# CHECK DISTRO TYPE +DISTRO=$(cat /etc/*-release | grep DISTRIB_ID= | cut -d'=' -f2) + +# CHECK FOR BLACKARCH LINUX if grep -q BlackArch /etc/issue; then DISTRO='blackarch' echo "Detected BlackArch GNU/Linux"