Skip to content

Commit f6b7050

Browse files
fix: make subarch distinguishable for ab_match_arch
Signed-off-by: Ilikara <[email protected]>
1 parent 1d412a4 commit f6b7050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/builtin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ ab_reverse_patches() {
3838
ab_match_arch() {
3939
# Check whether the calling of function is illegal
4040
if [[ -z $1 ]]; then
41-
aberr "ab_match_arch() was called but no pattern was specified."
41+
aberr "ab_match_arch() was called but no pattern was specified."
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)