Skip to content

Commit

Permalink
add FreeBSD support to test_nodebuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcoin-tools authored Aug 22, 2024
1 parent c7282b2 commit e70fdbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_nodebuilder
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ set -o errexit
set -o nounset

get_operating_system() {
if [ "${TARGET_KERNEL}" = 'Darwin' ]; then
printf '%s\n' 'Darwin'
if [ "${TARGET_KERNEL}" = 'Darwin' ] || [ "${TARGET_KERNEL}" = 'FreeBSD' ]; then
printf '%s\n' "${TARGET_KERNEL}"
else
readonly OS_RELEASE_ID_LIKE="$(grep '^ID_LIKE=' /etc/os-release | cut -d= -f2)"
readonly OS_RELEASE_ID="$(grep '^ID=' /etc/os-release | cut -d= -f2)"
Expand Down Expand Up @@ -139,7 +139,7 @@ readonly NODEBUILDER_BINARY_URL="${NODEBUILDER_REPO_URL}/raw/${GIT_REF_SHORT_NAM

case "${TARGET_KERNEL}" in
Darwin) bitcoin_data_directory="${HOME}/Library/Application Support/Bitcoin" ;;
Linux) bitcoin_data_directory="${HOME}/.bitcoin" ;;
Linux | FreeBSD) bitcoin_data_directory="${HOME}/.bitcoin" ;;
MINGW*) throw_error 'Windows is not supported.' ;;
*) throw_error 'Your operating system is not supported.' ;;
esac
Expand Down

0 comments on commit e70fdbd

Please sign in to comment.