-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
55 lines (53 loc) · 2.02 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
#!/bin/bash
#Path: run.sh
execute_scripts() {
case $1 in
1) cd scripts; python hunt_my_path.py ;;
2) cd scripts; python make_website.py ;;
3) cd scripts/cmd; exec ./code_counter.sh ;;
4) cd scripts/cmd; exec ./structure_folder.sh ;;
5) cd scripts/cmd; exec ./delete_sass.sh ;;
6) cd scripts; python tree_viewer.py ;;
esac
read -p "Press any key to continue... "
}
while true; do
echo "Hello Cutie _(:3」∠)_ , $(whoami), $(hostname)"
PS3='Please enter your choice: '
options=("Scripts" "Bank Options" "Quick Parse" "Quit")
select opt in "${options[@]}"; do
case $opt in
"Scripts")
PS3='Please choose a tree viewer option: '
tree_options=("What is my xml/xslt path" "Convert XML to Website" "XML Tree Viewer" "CMD Tools/Options" "Quit")
select tree_opt in "${tree_options[@]}"; do
case $tree_opt in
"What is my xml/xslt path") execute_scripts 1; break ;;
"Convert XML to Website") execute_scripts 2; break ;;
"XML Tree Viewer") execute_scripts 6; break ;;
"CMD Tools/Options")
PS3='Please choose a tree viewer option: '
tree_viewer_options=("Code Counter" "Folder Structure" "Delete SASS Mistakes" "Quit")
select tree_viewer_opt in "${tree_viewer_options[@]}"; do
case $tree_viewer_opt in
"Code Counter") execute_scripts 3; break ;;
"Folder Structure") execute_scripts 4; break ;;
"Delete SASS Mistakes") execute_scripts 5; break ;;
"Quit") break ;;
*) echo "Invalid option." ;;
esac
done
break
;;
"Quit") break ;;
*) echo "Invalid option." ;;
esac
done
;;
"Bank Options") python book_keeping.py; read -p "Press any key to continue... "; break ;;
"Quick Parse") execute_scripts 2; break;;
"Quit") exit 0 ;;
*) echo "Invalid option." ;;
esac
done
done