aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 09:07:49 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 09:07:49 +0000
commit768aa73443a5929aff3b7c0685fd6727feb9ac84 (patch)
treefbb536d2dd3f91de02a17b0987a5a4324266be33
parent16c2afe53277f31e6b98633aac575ac30637a4b7 (diff)
downloadcpt-768aa73443a5929aff3b7c0685fd6727feb9ac84.tar.gz
kiss: clean up
FossilOrigin-Name: 9c3504fca689298388e827108481737d57280660f599c40786b08d1e82a32eca
-rwxr-xr-xkiss5
1 files changed, 2 insertions, 3 deletions
diff --git a/kiss b/kiss
index 68e6dbe..5adb91b 100755
--- a/kiss
+++ b/kiss
@@ -27,7 +27,6 @@ log() {
contains() {
# Check if a "string list" contains a word.
case " $1 " in *" $2 "*) return 0; esac
-
return 1
}
@@ -617,7 +616,7 @@ pkg_install() {
else
# Read the version information to name the package.
- read -r version release < "$(pkg_find "$1")/version"
+ read -r version release 2>/dev/null < "$(pkg_find "$1")/version"
# Construct the name of the package tarball.
tar_name=$1\#$version-$release.tar.gz
@@ -909,7 +908,7 @@ args() {
for pkg; do
case $pkg in
*.tar.gz) deps="$deps $pkg " ;;
- *) pkg_depends "$pkg"
+ *) pkg_depends "$pkg" 2>/dev/null
esac
done