-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstaller.sh
36 lines (35 loc) · 908 Bytes
/
installer.sh
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
32
33
34
35
36
#!/bin/bash
# quick install file
echo "Installing Paqué..."
mkdir -p "$HOME/.paque"
mkdir -p "$HOME/.paque/pkgs"
# download paqué from the latest release on github.com/Lintine/xzpaque
curl -sL "https://github.com/Lintine/xzpaque/releases/latest/download/xzpaque.tar.gz" | tar -x -z -C "$HOME/.paque"
# add xzpaque to bashrc (nope
# source bashrc (nope)
choice() {
echo "Would you like to put an executable command for xzpaque in /usr/bin or /usr/local/bin?
1. /usr/bin
2. /usr/local/bin
3. No(ne)./I will make an executable later."
read i_choice
case "$i_choice" in
1)
sudo cp $HOME/.paque/xzpaque/main.sh /usr/bin/xzpaque
sudo chmod +x /usr/bin/xzpaque
;;
2)
sudo cp $HOME/.paque/xzpaque/main.sh /usr/local/bin/xzpaque
sudo chmod +x /usr/local/bin/xzpaque
;;
3)
# do nothing
;;
*)
echo "please enter a valid answer. [1/2/3]"
;;
esac
}
choice
# done
echo "Done!"