diff options
author | Robby Workman <rworkman@slackware.com> | 2017-12-30 01:06:40 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2018-01-02 17:58:49 -0600 |
commit | 47a185d6c6a7458ee994e3740adb2ecbd0103db6 (patch) | |
tree | 9189a1c3f3a8571815746d174a9d3d904928f8d9 | |
parent | 70948050f908f92a92bb51bc21eaf2730a0a070a (diff) | |
download | slackpkg-47a185d6c6a7458ee994e3740adb2ecbd0103db6.tar.xz |
pkglist.awk: Handle the (hopefully rare) case of $ROOT usage
-rw-r--r-- | files/pkglist.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/pkglist.awk b/files/pkglist.awk index 5a0c18e..9b4b1bc 100644 --- a/files/pkglist.awk +++ b/files/pkglist.awk @@ -3,7 +3,7 @@ fs=FS FS="/" ; OFS="/" $0=INPUT - if ( $2 != "var" ) { + if ( $(NF-3) != "var" ) { DIR=$2 FULLPACK=$NF } else { |