Initial support for multiple additions
This commit is contained in:
		@@ -156,7 +156,6 @@ checkUpdates() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
addPackage() {
 | 
					addPackage() {
 | 
				
			||||||
  scp $ssh_options $remote_repository/$repo_db_file $remote_repository/$repo_db_filesfile $run_directory_path/
 | 
					 | 
				
			||||||
  createPackage $1
 | 
					  createPackage $1
 | 
				
			||||||
  addPackageToRepo $1
 | 
					  addPackageToRepo $1
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -199,7 +198,13 @@ if [ "$1" = "" ]; then
 | 
				
			|||||||
  checkUpdates
 | 
					  checkUpdates
 | 
				
			||||||
elif [ "$1" = "add" ]; then
 | 
					elif [ "$1" = "add" ]; then
 | 
				
			||||||
  init
 | 
					  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
 | 
					elif [ "$1" = "clean" ]; then
 | 
				
			||||||
  clean
 | 
					  clean
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user