summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-07-01 20:43:35 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-07-01 20:43:35 +0200
commitee2003cbd0cb8159aa968c2cfaeaba211038c810 (patch)
tree3bb086f73770ea2a84d7a2e2d194881e500cfcf0 /bin
parenta972ec332fc17310bf2ad1062ee2112592f853d9 (diff)
fixed and/or that broke due to [[ change
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index c0e2cb8..1af442b 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -26,11 +26,11 @@ die () {
}
check_installed () {
- [[ -n "$1" -a -d $PDIR/$1 ]] || die "Not installed: $1\n"
+ [[ -n "$1" && -d $PDIR/$1 ]] || die "Not installed: $1\n"
}
check_valid () {
- [[ -d $PDIR/$1/.hg -o -d $PDIR/$1/.git ]] || die "Not a valid package name: '$1'\n"
+ [[ -d $PDIR/$1/.hg || -d $PDIR/$1/.git ]] || die "Not a valid package name: '$1'\n"
}
clear_line () {