-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_generator.sh
executable file
·55 lines (50 loc) · 1.29 KB
/
page_generator.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/zsh
# Note: This script requires execute permissions.
# You can set these permissions by running:
# chmod +x page_generator.sh
# chmod +x products_generator.sh
# chmod +x favorite_generator.sh
# chmod +x influenced_generator.sh
# chmod +x history_generator.sh
echo "What kind of page do you want to create?"
echo "Select a page generator script to run:"
echo "1) Products page "
echo "2) Favorite page "
echo "3) Influenced page "
echo "4) History page "
read "choice?Enter your choice (1-4): "
case $choice in
1)
echo ""
echo "--- products_generator.sh run ---"
echo ""
./public/pages/scripts/products_generator.sh
echo ""
;;
2)
echo ""
echo "--- favorite_generator.sh run ---"
echo ""
./public/pages/scripts/favorite_generator.sh
echo ""
;;
3)
echo ""
echo "--- influenced_generator.sh run ---"
echo ""
./public/pages/scripts/influenced_generator.sh
echo ""
;;
4)
echo ""
echo "--- history_generator.sh run ---"
echo ""
./public/pages/scripts/history_generator.sh
echo ""
;;
*)
echo "Invalid choice. Exiting."
exit 1
;;
esac
echo "Generator script has finished running."