-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch-sandbox-setup.sh
executable file
·58 lines (42 loc) · 1.56 KB
/
launch-sandbox-setup.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
source setup-sanbox.sh
source common-variables.sh
setupAvrDude
if [[ $? -gt 0 ]]; then
echo -e "${RED_C} --MajorTask@SetupAvrDude : Failed setting up avrdude, check your connection and your storage"
exit $?
else
echo -e "${GREEN_C} --MajorTask@SetupAvrDude : avrdude Successfully settled up and ready to run."
fi
echo -e ${RESET_Cs}
setupCURL
if [[ $? -gt 0 ]]; then
echo -e "${RED_C} --MajorTask@SetupCURL : Failed setting up CURL, check your connection and your storage"
exit $?
else
echo -e "${GREEN_C} --MajorTask@SetupCURL : Curl Successfully settled up and ready to run."
fi
echo -e ${RESET_Cs}
downloadAvrToolChain
if [[ $? -gt 0 ]]; then
echo -e "${RED_C} --MajorTask@Download-AvrGCC : Failed downloading avr toolchains, check your connection and your storage."
exit $?
else
echo -e "${GREEN_C} --MajorTask@Download-AvrGCC : Avr toolchains archive is downloaded successfully."
fi
echo -e ${RESET_Cs}
extractCompressedFile $avrgcc_compressed
if [[ $? -gt 0 ]]; then
echo -e "${RED_C} --MajorTask@Extract-AvrGCC : Failed extracting avr toolchains, check your storage and your permssions."
exit $?
else
echo -e "${GREEN_C} --MajorTask@Extract-AvrGCC : Avr toolchains is extracted successfully."
fi
echo -e ${RESET_Cs}
deleteAvrToolchainsArchive
if [[ $? -gt 0 ]]; then
echo -e "${RED_C} --MajorTask@Release-AVR-GCC-Archive : Failed deleting avr-gcc archive, archive not found."
exit $?
else
echo -e "${GREEN_C} --MajorTask@Release-AVR-GCC-Archive : AVR-GCC archive has been deleted successfully."
fi
echo -e ${RESET_Cs}