summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-12-30 01:06:40 -0600
committerRobby Workman <rworkman@slackware.com>2018-01-02 17:58:49 -0600
commit47a185d6c6a7458ee994e3740adb2ecbd0103db6 (patch)
tree9189a1c3f3a8571815746d174a9d3d904928f8d9 /files
parent70948050f908f92a92bb51bc21eaf2730a0a070a (diff)
downloadslackpkg-47a185d6c6a7458ee994e3740adb2ecbd0103db6.tar.xz
pkglist.awk: Handle the (hopefully rare) case of $ROOT usage
Diffstat (limited to 'files')
-rw-r--r--files/pkglist.awk2
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 {