channelz: make build script more forgiving when files not present

This commit is contained in:
Spencer Fang 2018-07-10 08:25:38 -07:00
parent fb1860b60b
commit 43f0e17ae3
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/