Skip to content

Commit 97170be

Browse files
fix linter problems
1 parent d88afce commit 97170be

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

helpers/helpers_emba_defaults.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ set_defaults() {
2323
if [[ -f "${INVOCATION_PATH}/config/.env" ]]; then
2424
# readin .env
2525
set -a # automatically export all variables
26+
# shellcheck source=/dev/null
2627
source "${INVOCATION_PATH}/config/.env"
2728
set +a
2829
else

installer.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ STRICT_MODE=1
2323
ORIG_USER="${SUDO_USER:-${USER}}"
2424
ORIG_GROUP=$(groups "${ORIG_USER}" | cut -d: -f2 | awk '{print $1}')
2525

26-
INVOCATION_PATH="$(dirname "${0}")"
27-
2826
export DEBIAN_FRONTEND=noninteractive
2927
export INSTALL_APP_LIST=()
3028
export DOWNLOAD_FILE_LIST=()

installer/I04_default_vars.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ I01_default_vars() {
9595
echo "OVERWRITE_LOG=${OVERWRITE_LOG:-0}" # automaticially overwrite log directory, if necessary
9696
echo "MAX_EXT_SPACE=${MAX_EXT_SPACE:-110000}" # ensure we do not stop on extraction. If you are running into disk space issues you can adjust this variable
9797
# Important directories
98-
LOG_DIR="${INVOCATION_PATH}/logs"
98+
LOG_DIR="${INVOCATION_PATH:=.}/logs" # !set innvocation path if unset
9999
echo "LOG_DIR=${LOG_DIR}"
100100
# echo "ERROR_LOG=${LOG_DIR}/emba_error.log"
101101
echo "TMP_DIR=${LOG_DIR}/tmp"
@@ -183,10 +183,11 @@ I01_default_vars() {
183183
S08_MODULES_ARR+=( "S08_submodule_rust_cargo_lock_parser" )
184184
S08_MODULES_ARR+=( "S08_submodule_node_js_package_lock_parser" )
185185
S08_MODULES_ARR+=( "S08_submodule_c_conanfile_txt_parser" )
186-
echo "S08_MODULES_ARR=( ${S08_MODULES_ARR[@]} )"
186+
echo "S08_MODULES_ARR=""( ""${S08_MODULES_ARR[@]}"" )"
187187
} > "${INVOCATION_PATH:-.}/config/.env" 2>/dev/null # store that into env file
188-
# read and export all vars in .env
188+
# read and export all vars in .env
189189
set -a # automatically export all variables
190+
# shellcheck source=/dev/null
190191
source "${INVOCATION_PATH}/config/.env"
191192
set +a
192193
}

0 commit comments

Comments
 (0)