forked from sabuhish/fastapi-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfastapi-mqtt.sh
48 lines (35 loc) · 1.23 KB
/
fastapi-mqtt.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
#!/bin/bash
ISSUE_URL="https://github.com/sabuhish/fastapi-mqtt/issues"
EMAIL="[email protected]"
CURRENT_DIRECTORY=$(pwd)
function automated_commands(){
if [[ "$1" == "clean" || $1 == "install" ]]; then
if [[ "$1" == "install" ]]; then
echo ""
echo -e "Author Sabuhi Shukurov"
cd "$CURRENT_DIRECTORY/scripts/"
bash install.sh
cd $CURRENT_DIRECTORY
exit 0
else
echo ""
cd "$CURRENT_DIRECTORY/scripts/"
bash clean.sh
cd $CURRENT_DIRECTORY
exit 0
fi
elif [[ "$1" == "-h" || $1 == "--help" ]]; then
echo -e "Thanks for your try at contribution!"
echo ""
echo -e "Useful Commands:"
echo -e "\t install Creating virtual environment and installing dependencies"
echo -e "\t clean Cleaning unusefull folders and files"
echo ""
echo -e "If you still having problem please submit issue at: $ISSUE_URL or email me: $EMAIL"
exit 0
else
echo "Unknown command, try with bash fastapi-mqtt.sh -h, --help"
fi
}
automated_commands $1