1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From d507216b98d16f27393a6ff0e2bba768bd52e2e5 Mon Sep 17 00:00:00 2001
From: Yann Dirson <ydirson@free.fr>
Date: Tue, 9 Dec 2014 21:57:25 +0100
Subject: [PATCH] Avoid "&>" bashism
---
utils/archfind | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/archfind b/utils/archfind
index f76d0a4..d9c9f3c 100755
--- a/utils/archfind
+++ b/utils/archfind
@@ -61,7 +61,7 @@ fi
# Check for SGI Symmetric Multiprocessing engine
if [ $ARCH = sgi4k -o $ARCH = sgi8k ]; then
# Run "hinv" and check for the number of processors
- /bin/hinv 2>&1 | /usr/bsd/head -1 2>&1 | /bin/grep "^1 " &> /dev/null
+ /bin/hinv 2>&1 | /usr/bsd/head -1 2>&1 | /bin/grep "^1 " >/dev/null 2>&1
if [ $? = 1 ]; then
XDEV="sgimp $XDEV"
fi
@@ -93,7 +93,7 @@ fi
if [ $ARCH = unknown ]; then
#See if users path finds an 'arch' command, it so, use it! (a little sloppy)
- arch &> /dev/null
+ arch >/dev/null 2>&1
if [ $? != 0 ]; then
#This machine does not have an 'arch' command
#Or at least one that correctly sets the arch
--
2.1.3
|