代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
usage()
{
echo "Usage: sync [-p]"
echo "Repository syncing script."
echo " -p Restore all NuGet packages for the repository"
echo "If no option is specified, then \"sync.sh -p\" is implied."
exit 1
}
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
unprocessedBuildArgs=
# Parse arguments
# Assume the default '-p' argument if the only arguments specified are specified after double dash.
# Only position parameters can be specified after the double dash.
if [ $# == 0 ] || [ "$1" == "--" ]; then
buildArgs="./build.proj /p:RestoreDuringBuild=true /t:Sync"
if [ "$1" == "--" ]; then
shift
fi
fi
while [[ $# -gt 0 ]]
do
opt="$1"
case $opt in
-h|--help)
usage
;;
-p)
buildArgs="./build.proj /p:RestoreDuringBuild=true /t:Sync"
;;
*)
unprocessedBuildArgs="$unprocessedBuildArgs $1"
esac
shift
done
$working_tree_root/dotnet.sh msbuild /nologo /verbosity:minimal /clp:Summary /flp:v=detailed\;LogFile=sync.log $buildArgs $unprocessedBuildArgs
if [ $? -ne 0 ]
then
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."
exit 1
fi
echo "Sync completed successfully."
exit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。