From 284c8af3d6194e2a82168cdc9c824f58648aba9f Mon Sep 17 00:00:00 2001 From: JJ Date: Mon, 7 Aug 2023 20:57:08 +0200 Subject: [PATCH] fix DISTRIB --- configure.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.sh b/configure.sh index 68576cfede..491be3b077 100644 --- a/configure.sh +++ b/configure.sh @@ -27,7 +27,7 @@ fi if [[ "$OSTYPE" == "linux-gnu"* ]]; then - local DISTRIB=$(awk -F= '/^ID/{print $2}' /etc/os-release) + DISTRIB=$(awk -F= '/^ID/{print $2}' /etc/os-release) if [[ ${DISTRIB} = "ubuntu"* ]]; then echo "Grabbing latest apt caches" sudo apt-get update @@ -42,7 +42,7 @@ fi echo "Installing OneUptime 🟢" if [[ ! $(which git) ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then - local DISTRIB=$(awk -F= '/^ID/{print $2}' /etc/os-release) + DISTRIB=$(awk -F= '/^ID/{print $2}' /etc/os-release) if [[ ${DISTRIB} = "ubuntu"* ]] || [[ ${DISTRIB} = "debian"* ]]; then sudo apt install -y git elif [[ ${DISTRIB} = "fedora"* ]] || [[ ${DISTRIB} = "almalinux"* ]] || [[ ${DISTRIB} = "rockylinux"* ]] || [[ ${DISTRIB} = "rhel"* ]]; then @@ -102,7 +102,7 @@ fi if [[ ! $(which npm) ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then - local DISTRIB=$(awk -F= '/^ID/{print $2}' /etc/os-release) + DISTRIB=$(awk -F= '/^ID/{print $2}' /etc/os-release) if [[ ${DISTRIB} = "ubuntu"* ]] || [[ ${DISTRIB} = "debian"* ]]; then echo "Setting up NPM" sudo apt-get install -y npm