--- bash.SlackBuild	2006-03-26 17:54:30.000000000 -0500
+++ bash.SlackBuild.s390x	2006-09-04 19:34:15.000000000 -0400
@@ -14,7 +14,7 @@
   SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
   SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "s390" ]; then
+elif [ "$ARCH" = "s390x" ]; then
   SLKCFLAGS="-O2"
 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2"
@@ -27,7 +27,7 @@
 mkdir -p $PKG
 
 # Determine bash patchlevel:
-PATCHLEVEL=`( cd $CWD/patches ; /bin/ls *gz | tail -1 | cut -f 2 -d - | cut -f 1 -d . 2> /dev/null )`
+PATCHLEVEL=`( cd $CWD/patches ; /bin/ls *gz | tail -n1 | cut -f 2 -d - | cut -f 1 -d . 2> /dev/null )`
 if [ "$PATCHLEVEL" = "" ]; then
   PATCHLEVEL=0
 fi
