-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper.sh
More file actions
executable file
·31 lines (27 loc) · 844 Bytes
/
helper.sh
File metadata and controls
executable file
·31 lines (27 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
set -euo pipefail
echo "arch-conf-scripts helper"
echo "Choose what to do:"
echo "Note: Some scripts might ask for your password, just enter it if prompted."
echo
echo "1) Install yay (pacman for the AUR)"
echo "2) Fix the Arch Linux keyring (useful if your pacman keyring is broken)"
echo
read -rp "Choose an option: " option
case "$option" in
1)
echo "Fetching and running yay installer..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/MKstarFromSwitch/arch-conf-scripts/HEAD/scripts/yay-install.sh)"
;;
2)
echo "Fetching and running keyring fix..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/MKstarFromSwitch/arch-conf-scripts/HEAD/scripts/keyring-fix.sh)"
;;
*)
echo "Invalid option."
exit 1
;;
esac
echo
echo "Done!"
exit 0