Fix update-bundled-web-ui.sh script

This commit is contained in:
grossmj committed 2024-05-15 12:05:43 +07:00
1 parent f0bc74ff6e
commit 86a78f53cb
5 files changed
+14 -18

No files matched your search

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