Fix some of the shellcheck issues in ./scripts

This commit is contained in:
Sameer Rahmani 2023-02-03 17:40:30 +00:00
parent e1a115e85a
commit f61005cc8e
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
3 changed files with 6 additions and 6 deletions

2
config
View File

@ -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

View File

@ -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
}

View File

@ -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