Skip to content

Commit

Permalink
Fix shellcheck lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
KineticTheory committed Apr 6, 2021
1 parent 3f9b977 commit 98c49fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion tools/cts1-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ esac
for env in ${environments}; do
if [[ $(fn_exists "$env") -gt 0 ]]; then
if [[ "${verbose:-false}" != false ]]; then echo "export -f $env"; fi

export -f "${env?}"
else
die "Requested environment $env is not defined."
Expand Down
4 changes: 2 additions & 2 deletions tools/darwin-arm-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ esac

for env in $environments; do
if [[ $(fn_exists $env) -gt 0 ]]; then
! [[ -v "$verbose" ]] && [[ "${verbose}" != "false" ]] && echo "export -f $env"
export -f ${env?}
if [[ "${verbose:-false}" != "false" ]]; then "export -f $env"; fi
export -f "${env?}"
else
die "Requested environment $env is not defined."
fi
Expand Down
8 changes: 4 additions & 4 deletions tools/darwin-power9-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ esac
# Sanity check
#--------------------------------------------------------------------------------------------------#

for env in $environments; do
if [[ $(fn_exists $env) -gt 0 ]]; then
! [[ -v "$verbose" ]] && [[ "${verbose}" != "false" ]] && echo "export -f $env"
export -f ${env?}
for env in ${environments}; do
if [[ $(fn_exists "$env") -gt 0 ]]; then
if [[ "${verbose:-false}" != false ]]; then echo "export -f $env"; fi
export -f "${env?}"
else
die "Requested environment $env is not defined."
fi
Expand Down
2 changes: 1 addition & 1 deletion tools/darwin-x86_64-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ environments="x86gcc930env x86intel1905env"
# Special setup for CTS-1: replace the 'draco-latest' symlink
pushd "/usr/projects/${package:-notset}" || exit
if [[ -L draco-latest ]]; then rm draco-latest; fi
if [[ -d "${source_prefix:=notset}" ]]; then ln -s "${source_prefix} draco-latest"; fi
if [[ -d "${source_prefix:=notset}" ]]; then ln -s "${source_prefix}" draco-latest; fi
popd || exit

#--------------------------------------------------------------------------------------------------#
Expand Down

0 comments on commit 98c49fb

Please sign in to comment.