Skip to content

Commit

Permalink
Fix update-bundled-web-ui.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed May 15, 2024
1 parent f0bc74f commit 86a78f5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
1 change: 0 additions & 1 deletion gns3server/static/web-ui/26.49028ab13de5de406c90.js

This file was deleted.

1 change: 0 additions & 1 deletion gns3server/static/web-ui/main.168a5d1c7ef57df476ea.js

This file was deleted.

1 change: 0 additions & 1 deletion gns3server/static/web-ui/main.93bb4a803caf93e6752d.js

This file was deleted.

1 change: 0 additions & 1 deletion gns3server/static/web-ui/runtime.ecefb4ce510d1c218e7d.js

This file was deleted.

22 changes: 11 additions & 11 deletions scripts/update-bundled-web-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
fi

git checkout 2.2
git fetch --tags
git pull
cd "$REPO_DIR"

if [[ -n "$TAG" ]]
then
echo "Switching to tag: ${TAG}"
git checkout "tags/${TAG}"
fi
git checkout 2.2
git fetch --tags
git pull

cd "$CURRENT_DIR"
if [[ -n "$TAG" ]]
then
echo "Switching to tag: ${TAG}"
git checkout "tags/${TAG}"
fi

cd "$CURRENT_DIR"
fi

echo "Current working dir $REPO_DIR"
Expand Down

0 comments on commit 86a78f5

Please sign in to comment.