summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-04-05 05:17:43 +0000
committerDave Woodfall <dave@slackbuilds.org>2021-04-05 05:17:43 +0000
commitaf7d21a99e1b04ed683715ef27005e0dcd0eec92 (patch)
treec9c1260b4521448c8da9a7f68c28d00c591c4771
parent969f650ff1c1987c40347f15ce0f4fca66c6db12 (diff)
downloadslackpkg-af7d21a99e1b04ed683715ef27005e0dcd0eec92.tar.xz
Remove now pointless if/then/else
-rw-r--r--files/core-functions.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh
index 1f4faf3..2e89f45 100644
--- a/files/core-functions.sh
+++ b/files/core-functions.sh
@@ -631,13 +631,9 @@ function makelist() {
INPUTLIST=$@
- if echo $CMD | grep -q install ; then
- ls -1 $ROOT/var/log/packages/* |
- awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
- else
- ls -1 $ROOT/var/log/packages/* |
- awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
- fi
+ printf "%s\n" $ROOT/var/log/packages/* |
+ awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
+
cat ${WORKDIR}/pkglist > ${TMPDIR}/pkglist
touch ${TMPDIR}/waiting