Use == instead of =~ for simple suffix matching.

This commit is contained in:
Ville Skyttä 2010-01-24 22:11:52 +02:00
parent 359db46260
commit 836adbbb2d

View File

@ -43,7 +43,7 @@ _strace()
/usr/include/asm/unistd.h | sed -e \
's/__NR_//')
if [ -z "$syscalls" ]; then
if [[ "$arch" =~ 86$ ]]; then
if [[ "$arch" == *86 ]]; then
unistd=/usr/include/asm/unistd_32.h
else
unistd=/usr/include/asm/unistd_64.h