/
install-dev-env.sh
executable file
路35 lines (29 loc) 路 891 Bytes
/
install-dev-env.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
#!/bin/bash
# Define color codes for output
RESET='\033[0m'
RED='\033[1;31m'
GREEN='\033[1;32m'
BLUE='\033[1;34m'
BOLD='\033[1m'
ITALIC='\033[3m'
# Define helper for running each script
function runAction() {
echo -e "\n${BLUE}$1${RESET}"
if ! bash $(dirname "${BASH_SOURCE}")/$2.sh; then
echo -e "${BOLD}${RED}Error: Failed to configure ${2}${RESET}"
fi
}
if ! xcode-select -p 1>/dev/null; then
echo "Installing xcode-select"
xcode-select --install
echo "Or download it here https://developer.apple.com/download/more/"
read -p "When Ready, press any key to continue" -n 1 && echo ""
fi
runAction "Configuring Hyper.." hyper/setup
runAction "Configuring NVM.." nvm/install
runAction "Installing Valet.." valet/install
runAction "Configuring Valet.." valet/setup
runAction "Configuring Magento Tools.." magento/setup
echo ""
echo -e "${BOLD}Done${RESET} 馃帀"
echo ""