Fix variable ordering
This commit is contained in:
@@ -260,7 +260,8 @@ parse_input() {
|
|||||||
declare -ga SERVICES CONTAINERS
|
declare -ga SERVICES CONTAINERS
|
||||||
local long_opts short_opts input
|
local long_opts short_opts input
|
||||||
|
|
||||||
# Defaults
|
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 \
|
declare -g \
|
||||||
BUILD_TARGET="$ID" \
|
BUILD_TARGET="$ID" \
|
||||||
REPO_TARGET="$ID" \
|
REPO_TARGET="$ID" \
|
||||||
@@ -268,13 +269,9 @@ parse_input() {
|
|||||||
OUTPUT_DIR="$SCRIPT_DIR/output" \
|
OUTPUT_DIR="$SCRIPT_DIR/output" \
|
||||||
CREATEREPO_WEBROOT="/var/www/jriver" \
|
CREATEREPO_WEBROOT="/var/www/jriver" \
|
||||||
USER="${SUDO_USER:-$USER}"
|
USER="${SUDO_USER:-$USER}"
|
||||||
|
|
||||||
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 HOME; HOME=$(getent passwd "$USER" | cut -d: -f6)
|
declare -g HOME; HOME=$(getent passwd "$USER" | cut -d: -f6)
|
||||||
|
|
||||||
declare -p
|
|
||||||
|
|
||||||
# Set some defaults if zero or one arguments are passed
|
# Set some defaults if zero or one arguments are passed
|
||||||
if [[ $# -eq 0 && $ID != "unknown" ]]; then
|
if [[ $# -eq 0 && $ID != "unknown" ]]; then
|
||||||
debug "Automatically setting --install repo"
|
debug "Automatically setting --install repo"
|
||||||
|
|||||||
Reference in New Issue
Block a user