kiss: Clear install input error messages

This commit is contained in:
Dylan Araps 2020-07-24 18:38:42 +03:00
parent 284897af22
commit 5ffa51aa67
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
kiss
View File

@ -1073,7 +1073,10 @@ pkg_install() {
pkg_name=$1
else
die "package has not been built, run 'kiss b pkg'"
case $1 in
*.tar.*) die "Tarball '$1' does not exist" ;;
*) die "Package '$1' has not yet been built"
esac
fi
mkdir -p "$tar_dir/$pkg_name"