-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sh
48 lines (42 loc) · 844 Bytes
/
script.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
#!/bin/bash
loc=/root # location of the scripts
echo -e "\n---------------------------------------------------------------------------------\n"
echo -e "What script do you wanna execlude?\n"
echo "[1] PAPER PATCH"
echo "[2] MOVE FILES"
echo "[3] UNZIP"
echo "[4] DUMP DATABASE"
echo "[5] DELETE DICTIONARIES"
echo "[6] QUIT"
echo ""
CASE=1
while [ $CASE -ne 0 ]; do
read -r -p "Please enter the number of your choice: " TYPE_INT
case $TYPE_INT in
"1")
cd $loc && ./paper.sh
CASE=0
;;
"2")
cd $loc && ./copy.sh
CASE=0
;;
"3")
cd $loc && ./unzip.sh
CASE=0
;;
"4")
cd $loc && ./dump.sh
CASE=0
;;
"5")
cd $loc && ./delete.sh
CASE=0
;;
"6")
break
CASE=0
;;
*) echo "invalid option";;
esac
done