summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
authorFrançois Charette <francois@archlinux.org>2009-05-06 21:30:02 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-06 21:30:02 +0200
commita86adff4ee619d90b5c7d49797cc77bd550e7dd6 (patch)
tree2e8d3b75d826fa6cbdbbd9bb10f37b6faeb99afc /db-update
parent787ec348cf0143b658e0252766e9e415950534a2 (diff)
downloaddbscripts-a86adff4ee619d90b5c7d49797cc77bd550e7dd6.tar.gz
dbscripts-a86adff4ee619d90b5c7d49797cc77bd550e7dd6.tar.xz
db-update: Replace || with -o in if statements
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-update b/db-update
index ae99cb0..507d40a 100755
--- a/db-update
+++ b/db-update
@@ -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