diff --git a/sh/core/code.sh b/sh/core/code.sh index 18860ab..a4a5eb0 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -8,7 +8,7 @@ # TODO variablize # path to the entrypoint main file of the project -RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}.sh" +RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}" # user root directory of the project RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}" @@ -59,7 +59,7 @@ rwx_code_install() { fi # commands root="${target}/usr/local/bin" - name="${RWX_SELF_NAME}.sh" + name="${RWX_SELF_NAME}.${RWX_MAIN_EXTENSION}" file="${root}/${name}" rwx_remove "${file}" rwx_link "${file}" "${RWX_MAIN_PATH}" @@ -71,7 +71,7 @@ rwx_code_install() { ${_rwx_code_commands} EOF # sh - file="${target}/etc/profile.d/${RWX_SELF_NAME}.sh" + file="${target}/etc/profile.d/${RWX_SELF_NAME}.${RWX_MAIN_EXTENSION}" rwx_remove "${file}" rwx_file_write "${file}" "\ export ENV=\"${RWX_MAIN_PATH}\" diff --git a/sh/lint/shellcheck.sh b/sh/lint/shellcheck.sh index 3bdfa07..75101f2 100644 --- a/sh/lint/shellcheck.sh +++ b/sh/lint/shellcheck.sh @@ -4,7 +4,7 @@ rwx_shellcheck() { file="$(mktemp)" modules="$(rwx_main_find "${root}")" while IFS= read -r module; do - path="${root}/${module}.sh" + path="${root}/${module}.${RWX_MAIN_EXTENSION}" echo ". \"${path}\"" >>"${file}" done <