From 862d85b0630f8a2ec5a2a40ff15204b8549f8e52 Mon Sep 17 00:00:00 2001 From: JJ Date: Mon, 7 Aug 2023 11:18:45 +0200 Subject: [PATCH] change DISTRIB to global var --- configure.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.sh b/configure.sh index ac4790fee3..2ea22ce231 100644 --- a/configure.sh +++ b/configure.sh @@ -27,7 +27,7 @@ fi # If linux 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 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 echo "Setting up NPM" sudo apt-get install -y npm