This repository was archived by the owner on Jan 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathct_update_patch
More file actions
43 lines (36 loc) · 1.33 KB
/
ct_update_patch
File metadata and controls
43 lines (36 loc) · 1.33 KB
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
#!/bin/bash
# This file is executed whenever updating the tool in order to properly handle data and settings transferring
patch_all_good() {
echo "These versions are fully intercompatible. Continuing..."
}
patch_fixing() {
echo "It seems that the newer version of Commands Tool works slightly differently."
echo "Fixing all of the issues with the current configuration"
patch_code_fix
}
patch_manual() {
MANUALURL="www.google.com"
echo "Uh-oh, it looks like these versions are not intercompatible at all."
echo "You will have to follow these instruction in order to manually transfer install files."
read -n1 -s -p "Press any key to dowload instructions..." key && echo
mkdir ~/.commandsutil/tmp/ &> /dev/null
wget -O ~/.commandsutil/tmp/patch_instruction $MANUALURL &> /dev/null
nano ~/.commandsutil/tmp/patch_instruction
read -n1 -s -p "Press any key when done..." key && echo
rm -rf ~/.commandsutil/tmp/
}
patch_code_fix() {
#echo "Oops, the developer did a stupid"
mv ~/.commandstool/plugins_alt ~/.commandstool/plugins &> /dev/null
}
patch_print_changelog() {
echo
echo "Changes:"
echo "- Testing changelog"
echo
}
echo "Checking if these versions are compatable"
patch_all_good
#patch_fixing
#patch_code_fix
patch_print_changelog