aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-11-16 19:53:41 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-11-16 19:53:41 +0000
commitdbeab96c5fad767bec5eac0176496c12ba7a645b (patch)
tree68b2d5d7abe3138501646fe1e2ca6710b1be5cb6
parent1b7f6c3ebfa61b767a521dbdbcaca8b7dda871bb (diff)
downloadcpt-dbeab96c5fad767bec5eac0176496c12ba7a645b.tar.gz
kiss: drop -n
FossilOrigin-Name: 8e92b414ecf8fd060eafb31ebb54c12717df9d9c052cbb33a58f8a1a12db7a09
-rwxr-xr-xkiss10
1 files changed, 5 insertions, 5 deletions
diff --git a/kiss b/kiss
index 378fff7..056a56f 100755
--- a/kiss
+++ b/kiss
@@ -142,7 +142,7 @@ pkg_sources() {
repo_dir=$(pkg_find "$1")
- while read -r src _ || [ -n "$src" ]; do
+ while read -r src _ || [ "$src" ]; do
# Remote source (cached).
if [ -f "${src##*/}" ]; then
log "$1" "Found cached source '${src##*/}'"
@@ -171,7 +171,7 @@ pkg_extract() {
repo_dir=$(pkg_find "$1")
- while read -r src dest || [ -n "$src" ]; do
+ while read -r src dest || [ "$src" ]; do
mkdir -p "$mak_dir/$1/$dest" && cd "$mak_dir/$1/$dest"
case $src in
@@ -214,7 +214,7 @@ pkg_depends() {
(pkg_list "$1" >/dev/null) && return
# Recurse through the dependencies of the child packages.
- while read -r dep _ || [ -n "$dep" ]; do
+ while read -r dep _ || [ "$dep" ]; do
[ "${dep##\#*}" ] && pkg_depends "$dep"
done 2>/dev/null < "$repo_dir/depends" ||:
@@ -548,7 +548,7 @@ pkg_checksums() {
repo_dir=$(pkg_find "$1")
- while read -r src _ || [ -n "$src" ]; do
+ while read -r src _ || [ "$src" ]; do
# File is local to the package.
if [ -f "$repo_dir/$src" ]; then
src_path=$repo_dir/${src%/*}
@@ -690,7 +690,7 @@ pkg_install() {
# installing the package.
[ -f "$tar_dir/$pkg_name/$pkg_db/$pkg_name/depends" ] &&
[ -z "$KISS_FORCE" ] &&
- while read -r dep dep_type || [ -n "$dep" ]; do
+ while read -r dep dep_type || [ "$dep" ]; do
[ "${dep##\#*}" ] || continue
[ "$dep_type" ] || pkg_list "$dep" >/dev/null ||
install_dep="$install_dep'$dep', "