From 1ffae99efd2a61af18b2cdb2767c4f04ea266252 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Mon, 18 Apr 2022 12:33:09 +0200 Subject: [PATCH] Initial support for multiple additions --- update-repo.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/update-repo.sh b/update-repo.sh index 304040d..3b98dd6 100755 --- a/update-repo.sh +++ b/update-repo.sh @@ -156,7 +156,6 @@ checkUpdates() { } addPackage() { - scp $ssh_options $remote_repository/$repo_db_file $remote_repository/$repo_db_filesfile $run_directory_path/ createPackage $1 addPackageToRepo $1 } @@ -199,7 +198,13 @@ if [ "$1" = "" ]; then checkUpdates elif [ "$1" = "add" ]; then init - addPackage $2 + scp $ssh_options $remote_repository/$repo_db_file $remote_repository/$repo_db_filesfile $run_directory_path/ + for arg in "$@"; do + if [[ $arg = "add" ]]; then + continue + fi + addPackage $arg + done elif [ "$1" = "clean" ]; then clean else