Skip to content

Commit 184e727

Browse files
committed
Fix detect_architecture print_warn captured by command substitution
Redirect warning to stderr so it doesn't pollute the arch variable when called as arch=$(detect_architecture) on unsupported platforms.
1 parent 7521f2a commit 184e727

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnstm-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ detect_architecture() {
15061506
echo "armv7"
15071507
;;
15081508
*)
1509-
print_warn "Unsupported architecture: $machine_arch (defaulting to amd64)"
1509+
print_warn "Unsupported architecture: $machine_arch (defaulting to amd64)" >&2
15101510
echo "amd64"
15111511
;;
15121512
esac

0 commit comments

Comments
 (0)