5 echo "Usage: sync [-p]"
6 echo "Repository syncing script."
7 echo " -p Restore all NuGet packages for the repository"
8 echo "If no option is specified, then \"sync.sh -p\" is implied."
12 working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
16 # Assume the default '-p' argument if the only arguments specified are specified after double dash.
17 # Only position parameters can be specified after the double dash.
18 if [ $# == 0 ] || [ $1 == '--' ]; then
33 unprocessedBuildArgs="$unprocessedBuildArgs $1"
38 $working_tree_root/run.sh sync $buildArgs $unprocessedBuildArgs
41 echo "ERROR: An error occurred while syncing packages; See $working_tree_root/sync.log for more details. There may have been networking problems, so please try again in a few minutes."
45 echo "Sync completed successfully."