pkglist.awk: Handle the (hopefully rare) case of $ROOT usage

This commit is contained in:
Robby Workman 2017-12-30 01:06:40 -06:00
parent 70948050f9
commit 47a185d6c6

View file

@ -3,7 +3,7 @@
fs=FS
FS="/" ; OFS="/"
$0=INPUT
if ( $2 != "var" ) {
if ( $(NF-3) != "var" ) {
DIR=$2
FULLPACK=$NF
} else {