Update web-ui bundled script to use master-3.0

pull/2091/head
grossmj 2 years ago
parent 725942157e
commit 5824f0797a

@ -67,23 +67,23 @@ echo "Re-create: $GNS3SERVER_DIR/gns3server/static/web-ui"
mkdir -p "$GNS3SERVER_DIR/gns3server/static/web-ui/" mkdir -p "$GNS3SERVER_DIR/gns3server/static/web-ui/"
if [ "$CUSTOM_REPO" = false ] ; then if [ "$CUSTOM_REPO" = false ] ; then
if [ ! -d /tmp/gns3-web-ui ]; then if [ ! -d "$REPO_DIR" ]; then
git clone https://github.com/GNS3/gns3-web-ui.git "$REPO_DIR" git clone https://github.com/GNS3/gns3-web-ui.git "$REPO_DIR"
else fi
cd "$REPO_DIR"
git checkout master cd "$REPO_DIR"
git fetch --tags
git pull
if [[ -n "$TAG" ]] git checkout master-3.0
then git fetch --tags
echo "Switching to tag: ${TAG}" git pull
git checkout "tags/${TAG}"
fi
cd "$CURRENT_DIR" if [[ -n "$TAG" ]]
then
echo "Switching to tag: ${TAG}"
git checkout "tags/${TAG}"
fi fi
cd "$CURRENT_DIR"
fi fi
echo "Current working dir $REPO_DIR" echo "Current working dir $REPO_DIR"

Loading…
Cancel
Save