Skip to content

Commit

Permalink
Updated huds_update.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Aug 25, 2022
1 parent 462ac5e commit 580d283
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions huds_update.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
#!/bin/bash
set -e

TAGNAME="archive"
TAGDATE=$(date +%d-%m-%Y)
TAGNAME=$(date +%Y.%m.%d)
TAGDATE=$(date +%Y-%m-%d)

echo "Initializing submodules..."
git submodule init > /dev/null 2>&1
git submodule init

echo "Updating submodules from remote repositories..."
git submodule update --recursive --remote > /dev/null 2>&1 || true
git submodule update --recursive --remote
sleep 10

echo "Committing changes..."
git commit -a -m "Updated all HUDs to the latest releases." > /dev/null 2>&1
git commit -a -m "Updated all HUDs to the latest releases."

echo "Removing existing Git tag..."
git tag --delete "$TAGNAME" > /dev/null 2>&1 || true
git push --delete origin "$TAGNAME" > /dev/null 2>&1 || true

echo "Adding new tag..."
git tag -s "$TAGNAME" -m "Release of $TAGDATE." > /dev/null 2>&1
git tag -s "$TAGNAME" -m "Release of $TAGDATE."

echo "Pushing changes..."
git push -u origin master > /dev/null 2>&1
git push -u origin --tags > /dev/null 2>&1
git push -u origin master
git push -u origin --tags

echo "Completed."

0 comments on commit 580d283

Please sign in to comment.