added update portable scripts

This commit is contained in:
SrGooglo 2024-02-06 21:34:02 +01:00
parent 1151908884
commit f99e0f42ed
2 changed files with 31 additions and 0 deletions

12
update.bat Normal file
View File

@ -0,0 +1,12 @@
echo "Updating package to latest master version"
echo "Fetching origin..."
git "fetch" "origin"
echo "Cleaning untracked files..."
git "clean" "-f" "-df"
echo "Resetting to HEAD..."
git "reset" "--hard" "HEAD"
echo "Pulling..."
git "pull"
echo "Checking out HEAD..."
git "checkout" "HEAD"
echo "Done"

19
update.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
echo "Updating package to latest master version"
echo "Fetching origin..."
git fetch origin
echo "Cleaning untracked files..."
git clean -f -df
echo "Resetting to HEAD..."
git reset --hard HEAD
echo "Pulling..."
git pull
echo "Checking out HEAD..."
git checkout HEAD
echo "Done"