Merge pull request #295 from grpc/buildscript-more-forgiving

channelz: make build script more forgiving when files not present
This commit is contained in:
zpencer 2018-07-10 09:01:38 -07:00 committed by GitHub
commit 1cfd55313e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,6 @@ cd $GRPC_ZPAGES_DIR/web/channelzui/
npm install
ng build --prod --build-optimizer --base-href=/dist_channelz/
rm $GRPC_ZPAGES_DIR/cli/dist_channelz/*
cp $GRPC_ZPAGES_DIR/web/channelzui/dist/* $GRPC_ZPAGES_DIR/cli/dist_channelz/
rm -rf $GRPC_ZPAGES_DIR/cli/dist_channelz/
mkdir -p $GRPC_ZPAGES_DIR/cli/dist_channelz/
cp -r $GRPC_ZPAGES_DIR/web/channelzui/dist/* $GRPC_ZPAGES_DIR/cli/dist_channelz/