From 568ab77d9070fd7161940bcb11068955064ff495 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 18 Feb 2006 19:15:41 +0000 Subject: [PATCH] sw.in: Cope properly if `uname -p' doesn't work. --- sw.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw.in b/sw.in index 36a2e37..c56b7cd 100755 --- a/sw.in +++ b/sw.in @@ -38,7 +38,7 @@ # --- Step one: find out about the CPU architecture --- -CPU=`uname -p`; CPU=`echo $CPU | tr A-Z a-z` +CPU=`uname -p 2>/dev/null || echo unknown`; CPU=`echo $CPU | tr A-Z a-z` case $CPU in unknown) CPU=`uname -m` ;; esac -- 2.11.0