From 717e15b52f8081e14f24fac9c047388d699d2673 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 5 Jun 2013 19:47:33 -0600 Subject: treepkg: make compound if statements more readable --- src/treepkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/treepkg') diff --git a/src/treepkg b/src/treepkg index 1453f41..519dee5 100755 --- a/src/treepkg +++ b/src/treepkg @@ -128,7 +128,7 @@ CLEANUP=${C:-true} # Skip BUILDORDER creation and build anything on BUILDDIR BUILDNOW=${N:-false} -if [ ! -z "${1}" -a ${DEPTH} -eq 0 ]; then +if [[ ! -z $1 ]] && [[ $DEPTH -eq 0 ]]; then BUILDNOW=true fi @@ -171,7 +171,7 @@ if ! ${BUILDNOW}; then # Ask toru where's a PKGBUILD depdir="$(toru-where ${_dep})" - if [ -z "${depdir}" -o ! -d "${depdir}" ]; then + if [[ -z ${depdir} ]] || [[ ! -d ${depdir} ]]; then # We specify the pkgname because we can't source the dep PKGBUILD # Normally 'any' packages are missing from our work ABS add_order "missing" "${_dep}" -- cgit v1.2.2