-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathupdate-build-scripts.sh
50 lines (45 loc) · 1.79 KB
/
update-build-scripts.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
#!/bin/bash
# Colors
RED='\033[31m'
GREEN='\033[1;32m'
BLUE='\033[0;34m'
NC='\033[0m'
NOT_INSTALL_STATUS=0
if [[ -f /usr/local/bin/config-android ]]; then
echo -e "${BLUE}==> Updating Dokan Android app configuration script${NC}"
rm /usr/local/bin/config-android
wget -qO /usr/local/bin/config-android https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/configure-android.sh
# Executable permission
chmod a+x /usr/local/bin/config-android
echo -e "${GREEN}Done!${NC}"
else
NOT_INSTALL_STATUS=$((NOT_INSTALL_STATUS+1))
echo -e "${GREEN}Android configuration script is not installed${NC}"
fi
if [[ -f /usr/local/bin/build-android ]]; then
echo -e "${BLUE}==> Updating Dokan Android app build script${NC}"
rm /usr/local/bin/build-android
wget -qO /usr/local/bin/build-android https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/build-android.sh
# Executable permission
chmod a+x /usr/local/bin/build-android
echo -e "${GREEN}Done!${NC}"
else
NOT_INSTALL_STATUS=$((NOT_INSTALL_STATUS+1))
echo -e "${GREEN}Android build script is not installed${NC}"
fi
if [[ -f /usr/local/bin/config-ios ]]; then
echo -e "${BLUE}==> Updating Dokan iOS app configuration script${NC}"
rm /usr/local/bin/config-ios
wget -qO /usr/local/bin/config-ios https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/configure-ios.sh
# Executable permission
chmod a+x /usr/local/bin/config-ios
echo -e "${GREEN}Done!${NC}"
else
NOT_INSTALL_STATUS=$((NOT_INSTALL_STATUS+1))
echo -e "${GREEN}iOS configuration script is not installed${NC}\n"
fi
if [[ $NOT_INSTALL_STATUS == 0 ]]; then
echo "******************************************"
echo "* Successfully updated Dokan App Scripts! *"
echo "*******************************************"
fi