Skip to content

Commit

Permalink
fix: shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswanson-dfinity committed Dec 6, 2023
1 parent 25449c2 commit 2bd167e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions public/install/999_footer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ download_and_install() {
ensure downloader "$_sha256_url" "${_sha256_filename}"

log "Checking integrity of tarball..."
ensure $SHASUM -c "${_sha256_filename}"
ensure "$SHASUM" -c "${_sha256_filename}"

ensure tar -xzf "${_tarball_filename}"
ensure cd "${_archive}" >/dev/null
Expand Down Expand Up @@ -73,10 +73,9 @@ main() {
need_cmd touch

local _dir
_dir="$(mktemp -d 2>/dev/null)"
if [ $? -ne 0 ]; then
_dir="$(mktemp -d -t dfinity-dfxvm)"
if [ $? -ne 0 ]; then

if ! _dir="$(mktemp -d 2>/dev/null)"; then
if ! _dir="$(mktemp -d -t dfinity-dfxvm)"; then
err "failed to create temporary directory"
fi
fi
Expand Down

0 comments on commit 2bd167e

Please sign in to comment.