-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·66 lines (63 loc) · 2.68 KB
/
run.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
55
56
57
58
59
60
61
62
63
64
65
66
# !/bin/bash
cd src && chmod +x *
source config.sh
source style.sh
f_clearAll
f_appTitle " (installer)"
f_tageMsg "i" "Install"
f_tageMsg "u" "Uninstall"
f_tageMsg "o" "Update"
f_tageMsg "e" "Exit"
f_line
f_userInput "Select any option: " startInputer
if [[ $startInputer == "i" ]]; then
if [[ -d /usr/bin/jsConsoler_favicons ]]; then
f_userMsg "$INFO_STAR" "Software is already installed!"
f_userMsg "$INFO_STAR" "$GREEN_COLOR""To run the command just type $DISABLED_COLOR jsConsoler $RESET$GREEN_COLOR on your favorite terminal.\n\n"
else
f_userMsg "$INFO_STAR" "Installation started!"
f_userMsg "$INFO_STAR" "Installing..."
sudo cp -r ./style.sh /usr/bin/jsConsoler_style.sh
sudo cp -r ./pkg.sh /usr/bin/jsConsoler_pkg.sh
sudo cp -r ./config.sh /usr/bin/jsConsoler_config.sh
sudo cp -r ./main_js_consoler.sh /usr/bin/jsConsoler
sudo cp -r ./templates/html.sh /usr/bin/jsConsoler_html.sh
sudo mkdir /usr/bin/jsConsoler_favicons
sudo cp -r ./templates/favicons/* /usr/bin/jsConsoler_favicons
echo
f_userMsg "$INFO_STAR" "To run the command just type $DISABLED_COLOR jsConsoler $RESET$GREEN_COLOR on your favorite terminal."
f_userMsg "$SUCCESS_STAR" "$BOLD$GREEN_COLOR""Installation Completed!\n\n"
fi
elif [[ $startInputer == "u" ]]; then
f_userMsg "$INFO_STAR" "Unstallation started!"
f_userMsg "$INFO_STAR" "Unstalling..."
sudo rm -r /usr/bin/jsConsoler_style.sh
sudo rm -r /usr/bin/jsConsoler_pkg.sh
sudo rm -r /usr/bin/jsConsoler_config.sh
sudo rm -r /usr/bin/jsConsoler
sudo rm -r /usr/bin/jsConsoler_html.sh
sudo rm -r /usr/bin/jsConsoler_favicons
f_userMsg "$DANGER_STAR" "$BOLD$GREEN_COLOR""Unstallation Completed!\n\n"
elif [[ $startInputer == "o" ]]; then
f_userMsg "$INFO_STAR" "Updating started!"
f_userMsg "$INFO_STAR" "Updating..."
sudo rm -r /usr/bin/jsConsoler_style.sh
sudo rm -r /usr/bin/jsConsoler_pkg.sh
sudo rm -r /usr/bin/jsConsoler_config.sh
sudo rm -r /usr/bin/jsConsoler
sudo rm -r /usr/bin/jsConsoler_html.sh
sudo rm -r /usr/bin/jsConsoler_favicons
sudo cp -r ./style.sh /usr/bin/jsConsoler_style.sh
sudo cp -r ./pkg.sh /usr/bin/jsConsoler_pkg.sh
sudo cp -r ./config.sh /usr/bin/jsConsoler_config.sh
sudo cp -r ./main_js_consoler.sh /usr/bin/jsConsoler
sudo cp -r ./templates/html.sh /usr/bin/jsConsoler_html.sh
sudo mkdir /usr/bin/jsConsoler_favicons
sudo cp -r ./templates/favicons/* /usr/bin/jsConsoler_favicons
echo
f_userMsg "$INFO_STAR" "To run the command just type $DISABLED_COLOR jsConsoler $RESET$GREEN_COLOR on your favorite terminal."
f_userMsg "$SUCCESS_STAR" "$BOLD$GREEN_COLOR""jsConsoler updating completed!\n\n"
elif [[ $startInputer == "e" ]]; then
f_exit_program
fi
cd ..