summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg10
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/pkg b/bin/pkg
index 67153bd..f89afdb 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -152,20 +152,14 @@ check_deps () {
DEPS=($(cat $PDIR/$1/dependencies))
INSTALL=()
for dep in $DEPS; {
- if ([ "$dep" = "$1" ]) {
- warn "This package depends on itself. Therefore, I'm considering it borked. Not installing.\n"
- return 100
- }
if ([ ! -d $PDIR/$dep ]) {
if (confirm_yes "$1 depends on $dep. Install dependency?") {
INSTALL+="$dep"
}
}
}
- if ([ -n "$INSTALL" ]) {
- for pkg in $INSTALL; {
- pkg_add "$pkg"
- }
+ for pkg in $INSTALL; {
+ pkg_add "$pkg"
}
}