Initial support for multiple additions

This commit is contained in:
Alexandre CATTEAU 2022-04-18 12:33:09 +02:00
parent 4572fbcbc8
commit 1ffae99efd

View File

@ -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