aboutsummaryrefslogtreecommitdiffstats
path: root/xen/tools/get-fields.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xen/tools/get-fields.sh')
-rw-r--r--xen/tools/get-fields.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/tools/get-fields.sh b/xen/tools/get-fields.sh
index 0a3885bea7..49019a43be 100644
--- a/xen/tools/get-fields.sh
+++ b/xen/tools/get-fields.sh
@@ -2,7 +2,9 @@ test -n "$1" -a -n "$2" -a -n "$3"
set -ef
SED=sed
-test -x /usr/xpg4/bin/sed && SED=/usr/xpg4/bin/sed
+if test -x /usr/xpg4/bin/sed; then
+ SED=/usr/xpg4/bin/sed
+fi
get_fields ()
{