summaryrefslogtreecommitdiffstats
path: root/files/cutpkg.awk
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-03-06 08:01:53 +0000
committerDave Woodfall <dave@slackbuilds.org>2021-03-06 08:01:53 +0000
commit844b3a542434cf29681bb83734ad762e291c82d2 (patch)
tree007ec77d5e3cb790658923ca664742894844dd24 /files/cutpkg.awk
parent90b86d84fe21c6cad76130059192bd998918d77d (diff)
downloadslackpkg-844b3a542434cf29681bb83734ad762e291c82d2.tar.xz
Avoid matching txz/tgz etc extension when blacklisting.
Make blacklist file a full package name regex. Replace redundant 'print $0 } else { print $0' in cutpkg.awk. Fix formatting on 'blacklist or ignore' message.
Diffstat (limited to 'files/cutpkg.awk')
-rw-r--r--files/cutpkg.awk4
1 files changed, 1 insertions, 3 deletions
diff --git a/files/cutpkg.awk b/files/cutpkg.awk
index 62aaad7..d4cc57c 100644
--- a/files/cutpkg.awk
+++ b/files/cutpkg.awk
@@ -1,8 +1,6 @@
OFS="-" {
if ( NF > 3 ) {
NF=NF-3
- print $0
- } else {
- print $0
}
}
+1