From 0d7c2d09490e92a72cbf4963236eadf1fae44aec Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 4 Oct 2024 00:08:45 -0400 Subject: [PATCH] Fix variable assignment --- installJRMC | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/installJRMC b/installJRMC index 4dc368a..8cc97fb 100755 --- a/installJRMC +++ b/installJRMC @@ -262,14 +262,12 @@ parse_input() { declare -g SCRIPT_PATH; SCRIPT_PATH=$(readlink -f "${BASH_SOURCE[0]}") declare -g SCRIPT_DIR=; SCRIPT_DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")") - declare -g \ - BUILD_TARGET="$ID" \ - REPO_TARGET="$ID" \ - CREATEREPO_USER="$USER" \ - OUTPUT_DIR="$SCRIPT_DIR/output" \ - CREATEREPO_WEBROOT="/var/www/jriver" \ - USER="${SUDO_USER:-$USER}" - + declare -g BUILD_TARGET="$ID" + declare -g REPO_TARGET="$ID" + declare -g CREATEREPO_USER="$USER" + declare -g OUTPUT_DIR="$SCRIPT_DIR/output" + declare -g CREATEREPO_WEBROOT="/var/www/jriver" + declare -g USER="${SUDO_USER:-$USER}" declare -g HOME; HOME=$(getent passwd "$USER" | cut -d: -f6) # Set some defaults if zero or one arguments are passed