From: Nina Didenko Date: Tue, 5 Nov 2019 17:45:42 +0000 (+0300) Subject: udbToAny.ksh: don't hardcode path to awk X-Git-Tag: 2.3.1~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=52caa8b8e611b49c2f820b5ed8d0ab3b72d24cba;p=oweals%2Fcde.git udbToAny.ksh: don't hardcode path to awk --- 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 #