Skip to content

Commit

Permalink
refactor the if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcoin-tools authored Oct 5, 2024
1 parent 494bb7e commit 25c0ab6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nodebuilder
Original file line number Diff line number Diff line change
Expand Up @@ -1011,8 +1011,9 @@ install_runtime_dependencies_aptget()
dependencies=$(curl --fail --silent --show-error --location --retry 5 "${RUNTIME_DEPENDENCIES_URL}")
[ -z "${dependencies:-}" ] && throw_error 'The list of dependencies is empty.'
printf '%s\n' "${dependencies}" | xargs sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --assume-yes --no-install-recommends > /dev/null 2>&1
[ "${TARGET_ARCHITECTURE}" = 'riscv64' ] &&
if [ "${TARGET_ARCHITECTURE}" = 'riscv64' ]; then
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --assume-yes --no-install-recommends libatomic1 > /dev/null 2>&1
fi
}

install_runtime_dependencies_darwin()
Expand Down

0 comments on commit 25c0ab6

Please sign in to comment.