Fix some of the shellcheck issues in ./scripts
This commit is contained in:
parent
e1a115e85a
commit
f61005cc8e
2
config
2
config
|
@ -92,4 +92,4 @@ export BDWGC_DIR_NAME
|
|||
export BDWGC_DIR
|
||||
export BDWGC_BUILD_DIR
|
||||
export BDWGC_INSTALL_DIR
|
||||
export BDWgc_DIR
|
||||
export BDWgc_DIR
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#
|
||||
# IMPORTANT: ENV Vars comes from the `config` file
|
||||
|
||||
# shellcheck source=./deps.sh
|
||||
source ./scripts/utils.sh
|
||||
# shellcheck source=/dev/null
|
||||
source "scripts/utils.sh"
|
||||
|
||||
function build_toolchain() { ## Build LLVM and the toolchain
|
||||
local version
|
||||
|
@ -78,7 +78,7 @@ function package_toolchain() { ## Packages the built toolchain
|
|||
info "Packaging the toolchain version '$version'..."
|
||||
_push "$DEPS_BUILD_DIR"
|
||||
local pkg
|
||||
pkg="$LLVM_DIR_NAME.$(get_version $LLVM_DIR)"
|
||||
pkg="$LLVM_DIR_NAME.$(get_version "$LLVM_DIR")"
|
||||
time tar -I "$ZSTD_CLI" -cf "$pkg.zstd" "$pkg"
|
||||
_pop
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ function package_bdwgc() { ## Packages the built toolchain
|
|||
info "Packaging the BDWGC version '$version'..."
|
||||
_push "$DEPS_BUILD_DIR"
|
||||
local pkg
|
||||
pkg="$BDWGC_DIR_NAME.$(get_version $BDWGC_SOURCE_DIR)"
|
||||
pkg="$BDWGC_DIR_NAME.$(get_version "$BDWGC_SOURCE_DIR")"
|
||||
time tar -I "$ZSTD_CLI" -cf "$pkg.zstd" "$pkg"
|
||||
_pop
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ function get_version() {
|
|||
|
||||
function http_push() {
|
||||
if [[ -z "$DEV_HEROES_TOKEN" ]]; then
|
||||
error '"$DEV_HEROES_TOKEN" is not set.'
|
||||
error "\$DEV_HEROES_TOKEN is not set."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue