Skip to content

Commit 7874d86

Browse files
fix: make subarch distinguishable for ab_match_arch (#65)
Signed-off-by: Ilikara <[email protected]>
1 parent 1d412a4 commit 7874d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/builtin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ab_match_arch() {
4242
abinfo "Usage: ab_match_arch \"match_pattern\""
4343
abdie "Misuse of ab_match_arch()! Refuse to proceed."
4444
fi
45-
if [[ ${ABHOST%%_*} = $1 ]]; then
45+
if [[ ${ABHOST} = $1 ]]; then
4646
abinfo "Architecture $ABHOST matches $1: taking true branch."
4747
return 0
4848
else

0 commit comments

Comments
 (0)