From f9cd2337f307a5c29d83ce245b97f2931583cea9 Mon Sep 17 00:00:00 2001 From: kevadesu Date: Sat, 18 Jan 2025 04:53:54 +0100 Subject: [PATCH] Pushing out another emergency update lfg I hate this --- Setup.sh | 2 +- main.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Setup.sh b/Setup.sh index 6e9a5ad..b5316fd 100755 --- a/Setup.sh +++ b/Setup.sh @@ -103,7 +103,7 @@ Other: Input any path" echo "Ok!" ;; esac - sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.0/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." + sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.1/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." sudo chmod +x $INSTALL_PATH/gir || echo "FAIL | Either insufficient permissions or file does not exist or sudo does not exist." } diff --git a/main.sh b/main.sh index 50b58fc..0c4068b 100755 --- a/main.sh +++ b/main.sh @@ -45,11 +45,14 @@ function gir.main() { "Pull changes") git pull ;; + "Stash changes") + git stash + ;; "(Re)initialise repository") git init ;; "(Destructive) Reset to remote state") - gum confirm "You are about to reset this repository to the remote state, which will delete all untracked files and overwrite everything with whatever is stored remotely. Are you sure?" --affirmative="Yes, reset!" --negative="No, I changed my mind." --prompt.foreground="#d20f39" --selected.background="#d20f39" && gum spin --spinner minidot --title "Resetting repository to remote state..." -- gir.reset || echo "Operation cancelled." + gum confirm "You are about to reset this repository to the remote state, which will delete all untracked files and overwrite everything with whatever is stored remotely. Are you sure?" --affirmative="Yes, reset!" --negative="No, I changed my mind." --prompt.foreground="#d20f39" --selected.background="#d20f39" && gir.reset || echo "Operation cancelled." ;; "Quit") exit @@ -109,6 +112,3 @@ function gir.reset() { } gir.main - -# --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm..." -# --no-limit --header "Select hash to undo" --prompt="| " --indicator="> "