Skip to content

Commit

Permalink
Pushing out another emergency update lfg
Browse files Browse the repository at this point in the history
I hate this
  • Loading branch information
kevadesu committed Jan 18, 2025
1 parent 67ef149 commit f9cd233
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

Expand Down
8 changes: 4 additions & 4 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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="> "

0 comments on commit f9cd233

Please # to comment.