From 52caa8b8e611b49c2f820b5ed8d0ab3b72d24cba Mon Sep 17 00:00:00 2001 From: Nina Didenko Date: Tue, 5 Nov 2019 20:45:42 +0300 Subject: [PATCH] udbToAny.ksh: don't hardcode path to awk --- cde/admin/IntegTools/dbTools/udbToAny.ksh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cde/admin/IntegTools/dbTools/udbToAny.ksh b/cde/admin/IntegTools/dbTools/udbToAny.ksh index 655b627f..2345b9fd 100755 --- a/cde/admin/IntegTools/dbTools/udbToAny.ksh +++ b/cde/admin/IntegTools/dbTools/udbToAny.ksh @@ -102,9 +102,9 @@ ConvertRoutine() shift shift - AWK=/usr/bin/awk - if [ -x /usr/bin/nawk ]; then - AWK=/usr/bin/nawk + AWK=awk + if type nawk > /dev/null 2>&1; then + AWK=nawk fi # -- 2.25.1