summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
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