forked from picodotdev/alis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdownload.sh
executable file
·48 lines (39 loc) · 1.36 KB
/
download.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
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
set -e
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2020 picodotdev
GITHUB_USER="picodotdev"
while getopts "u:" arg; do
case ${arg} in
u)
GITHUB_USER=${OPTARG}
;;
?)
echo "Invalid option: -${OPTARG}."
exit 1
;;
esac
done
rm -f alis.conf
rm -f alis.sh
rm -f alis-asciinema.sh
rm -f alis-reboot.sh
rm -f alis-recovery.conf
rm -f alis-recovery.sh
rm -f alis-recovery-asciinema.sh
rm -f alis-recovery-reboot.sh
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis.conf
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis.sh
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis-asciinema.sh
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis-reboot.sh
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis-recovery.conf
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis-recovery.sh
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis-recovery-asciinema.sh
curl -O https://raw.githubusercontent.com/$GITHUB_USER/alis/master/alis-recovery-reboot.sh
chmod +x alis.sh
chmod +x alis-asciinema.sh
chmod +x alis-reboot.sh
chmod +x alis-recovery.sh
chmod +x alis-recovery-asciinema.sh
chmod +x alis-recovery-reboot.sh