-
Notifications
You must be signed in to change notification settings - Fork 2
/
update_from_github.sh
executable file
·54 lines (52 loc) · 1.91 KB
/
update_from_github.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
49
50
51
52
53
54
#!/bin/sh
# Originally made by Rhapsody
# Modified by JarateKing
# backup files to preserve
mv "./cfg/_settings.cfg" "./_settings.cfg"
mv "./cfg/scout.cfg" "./scout.cfg"
mv "./cfg/soldier.cfg" "./soldier.cfg"
mv "./cfg/pyro.cfg" "./pyro.cfg"
mv "./cfg/demoman.cfg" "./demoman.cfg"
mv "./cfg/heavyweapons.cfg" "./heavyweapons.cfg"
mv "./cfg/engineer.cfg" "./engineer.cfg"
mv "./cfg/medic.cfg" "./medic.cfg"
mv "./cfg/sniper.cfg" "./sniper.cfg"
mv "./cfg/spy.cfg" "./spy.cfg"
mv "./cfg/scout_c.cfg" "./scout_c.cfg"
mv "./cfg/soldier_c.cfg" "./soldier_c.cfg"
mv "./cfg/pyro_c.cfg" "./pyro_c.cfg"
mv "./cfg/demoman_c.cfg" "./demoman_c.cfg"
mv "./cfg/heavyweapons_c.cfg" "./heavyweapons_c.cfg"
mv "./cfg/engineer_c.cfg" "./engineer_c.cfg"
mv "./cfg/medic_c.cfg" "./medic_c.cfg"
mv "./cfg/sniper_c.cfg" "./sniper_c.cfg"
mv "./cfg/spy_c.cfg" "./spy_c.cfg"
# download zip from github
wget https://github.com/JarateKing/jarconfig/archive/master.zip --no-check-certificate
# extract zip
unzip master.zip
# move folders and files out of jarconfig-master
cp -rf "./jarconfig-master/." "."
# remove folders and files used in the process
rm -rf "./jarconfig-master"
rm -rf "./master.zip"
# return preserved files
mv "./_settings.cfg" "./cfg/_settings.cfg"
mv "./scout.cfg" "./cfg/scout.cfg"
mv "./soldier.cfg" "./cfg/soldier.cfg"
mv "./pyro.cfg" "./cfg/pyro.cfg"
mv "./demoman.cfg" "./cfg/demoman.cfg"
mv "./heavyweapons.cfg" "./cfg/heavyweapons.cfg"
mv "./engineer.cfg" "./cfg/engineer.cfg"
mv "./medic.cfg" "./cfg/medic.cfg"
mv "./sniper.cfg" "./cfg/sniper.cfg"
mv "./spy.cfg" "./cfg/spy.cfg"
mv "./scout_c.cfg" "./cfg/scout_c.cfg"
mv "./soldier_c.cfg" "./cfg/soldier_c.cfg"
mv "./pyro_c.cfg" "./cfg/pyro_c.cfg"
mv "./demoman_c.cfg" "./cfg/demoman_c.cfg"
mv "./heavyweapons_c.cfg" "./cfg/heavyweapons_c.cfg"
mv "./engineer_c.cfg" "./cfg/engineer_c.cfg"
mv "./medic_c.cfg" "./cfg/medic_c.cfg"
mv "./sniper_c.cfg" "./cfg/sniper_c.cfg"
mv "./spy_c.cfg" "./cfg/spy_c.cfg"