diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2021-04-05 05:17:43 +0000 |
---|---|---|
committer | Dave Woodfall <dave@slackbuilds.org> | 2021-04-05 05:17:43 +0000 |
commit | af7d21a99e1b04ed683715ef27005e0dcd0eec92 (patch) | |
tree | c9c1260b4521448c8da9a7f68c28d00c591c4771 /files/core-functions.sh | |
parent | 969f650ff1c1987c40347f15ce0f4fca66c6db12 (diff) | |
download | slackpkg-af7d21a99e1b04ed683715ef27005e0dcd0eec92.tar.xz |
Remove now pointless if/then/else
Diffstat (limited to 'files/core-functions.sh')
-rw-r--r-- | files/core-functions.sh | 10 |
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 |