kiss-depends: clearer

This commit is contained in:
Dylan Araps 2020-09-09 13:41:58 +03:00
parent ba971ba449
commit 07ad1dcf73
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 1 deletions

View File

@ -2,8 +2,9 @@
# Turn an installed package into a KISS tarball
db=$KISS_ROOT/var/db/kiss/installed
pkg=${1:-"${PWD##*/}"}
kiss list "${pkg:=${1:-"${PWD##*/}"}}" >/dev/null || {
kiss list "$pkg" >/dev/null || {
printf 'usage: kiss-export [pkg]\n'
exit 1
}