diff options
author | François Charette <francois@archlinux.org> | 2009-05-06 21:30:02 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-05-06 21:30:02 +0200 |
commit | a86adff4ee619d90b5c7d49797cc77bd550e7dd6 (patch) | |
tree | 2e8d3b75d826fa6cbdbbd9bb10f37b6faeb99afc | |
parent | 787ec348cf0143b658e0252766e9e415950534a2 (diff) | |
download | dbscripts-a86adff4ee619d90b5c7d49797cc77bd550e7dd6.tar.gz dbscripts-a86adff4ee619d90b5c7d49797cc77bd550e7dd6.tar.xz |
db-update: Replace || with -o in if statements
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | db-update | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -145,7 +145,7 @@ for A in ${ARCHES[@]}; do ADDPKGS="$(/bin/ls $stagedir/*-${current_arch}$PKGEXT 2>/dev/null)" fi - if [ -n "$ADDPKGS" || -n "$ANYPKGS" ]; then + if [ -n "$ADDPKGS" -o -n "$ANYPKGS" ]; then echo "==> Copying DB file from '$reponame'..." >&2 if [ -f "$ftppath/$reponame.db.tar.$DB_COMPRESSION" ]; then @@ -183,7 +183,7 @@ for A in ${ARCHES[@]}; do done fi - if [ -n "$to_add" || -n "$to_add_any" ]; then + if [ -n "$to_add" -o -n "$to_add_any" ]; then cd "$WORKDIR/build/" for f in $to_add $to_add_any; do /bin/cp "$f" .; done |