Fix variable assignment
This commit is contained in:
14
installJRMC
14
installJRMC
@@ -262,14 +262,12 @@ parse_input() {
|
|||||||
|
|
||||||
declare -g SCRIPT_PATH; SCRIPT_PATH=$(readlink -f "${BASH_SOURCE[0]}")
|
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 SCRIPT_DIR=; SCRIPT_DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
|
||||||
declare -g \
|
declare -g BUILD_TARGET="$ID"
|
||||||
BUILD_TARGET="$ID" \
|
declare -g REPO_TARGET="$ID"
|
||||||
REPO_TARGET="$ID" \
|
declare -g CREATEREPO_USER="$USER"
|
||||||
CREATEREPO_USER="$USER" \
|
declare -g OUTPUT_DIR="$SCRIPT_DIR/output"
|
||||||
OUTPUT_DIR="$SCRIPT_DIR/output" \
|
declare -g CREATEREPO_WEBROOT="/var/www/jriver"
|
||||||
CREATEREPO_WEBROOT="/var/www/jriver" \
|
declare -g USER="${SUDO_USER:-$USER}"
|
||||||
USER="${SUDO_USER:-$USER}"
|
|
||||||
|
|
||||||
declare -g HOME; HOME=$(getent passwd "$USER" | cut -d: -f6)
|
declare -g HOME; HOME=$(getent passwd "$USER" | cut -d: -f6)
|
||||||
|
|
||||||
# Set some defaults if zero or one arguments are passed
|
# Set some defaults if zero or one arguments are passed
|
||||||
|
|||||||
Reference in New Issue
Block a user