kiss: tarball must be full path. Closes #149'

This commit is contained in:
Dylan Araps 2020-05-12 08:11:11 +03:00
parent 970301805c
commit 16e40cb0fa
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -1185,7 +1185,7 @@ pkg_install() {
# Install can also take the full path to a tarball. # Install can also take the full path to a tarball.
# We don't need to check the repository if this is the case. # We don't need to check the repository if this is the case.
if [ -f "$1" ] && [ -z "${1%%*.tar.*}" ] ; then if [ -f "$1" ] && [ -z "${1%%*.tar.*}" ] && [ -z "${1##*/*}" ]; then
tar_file=$1 pkg_name=${1##*/} pkg_name=${pkg_name%#*} tar_file=$1 pkg_name=${1##*/} pkg_name=${pkg_name%#*}
elif pkg_cache "$1" 2>/dev/null; then elif pkg_cache "$1" 2>/dev/null; then