From bbf00cc90ed8d1bf3bbed1f78acca71b2d624ee2 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 1 Nov 2011 09:55:26 -0500 Subject: db-repo-{add, remove}: allow specifying multiple packages This allows invoking these commands for more than one package at a time which is incredibly more efficient as the database doesn't need to be locked, unpacked, modified, changed, and unlocked for every single passed package name or file if you have more than one. Signed-off-by: Dan McGee --- db-remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db-remove') diff --git a/db-remove b/db-remove index e7326c0..7e2282a 100755 --- a/db-remove +++ b/db-remove @@ -3,8 +3,8 @@ . "$(dirname $0)/db-functions" . "$(dirname $0)/config" -if [ $# -ne 3 ]; then - msg "usage: $(basename $0) " +if [ $# -lt 3 ]; then + msg "usage: $(basename $0) ..." exit 1 fi -- cgit v1.2.3-24-g4f1b