From f99e0f42eddceea4014b93643800bda22666958f Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 6 Feb 2024 21:34:02 +0100 Subject: [PATCH] added update portable scripts --- update.bat | 12 ++++++++++++ update.sh | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 update.bat create mode 100644 update.sh diff --git a/update.bat b/update.bat new file mode 100644 index 0000000..6789b56 --- /dev/null +++ b/update.bat @@ -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" \ No newline at end of file diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..8e06aba --- /dev/null +++ b/update.sh @@ -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" \ No newline at end of file