udbToAny.ksh: don't hardcode path to awk
authorNina Didenko <nina.didenko@gmail.com>
Tue, 5 Nov 2019 17:45:42 +0000 (20:45 +0300)
committerJon Trulson <jon@radscan.com>
Wed, 6 Nov 2019 01:49:02 +0000 (18:49 -0700)
cde/admin/IntegTools/dbTools/udbToAny.ksh

index 655b627f6b8f23fec139543dd785644a5f4c15de..2345b9fdbf556fb76158cd9d5185fb829a4e9b59 100755 (executable)
@@ -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
 
 #