-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·25 lines (24 loc) · 1009 Bytes
/
install.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
#!/usr/bin/env sh
# Author: Ryan Hendrickson
# Filename: install.sh
# Displays options for the installer to execute.
while true; do
printf '\nThese are the available options:\n'
printf '\t0) Execute every command\n'
printf '\t1) Setup symlinks\n'
printf '\t2) Install packages\n'
printf '\t3) Setup n, a node version manager\n'
printf '\t4) Setup Symfony CLI with curl\n'
printf '\tQ) Exit the installer\n'
printf '\nPlease enter your selection: '
read -r opt
case $opt in
[0]* ) sh "$PWD/scripts/everything.sh"; continue;;
[1]* ) sh "$PWD/scripts/setup_symlinks.sh"; continue;;
[2]* ) sh "$PWD/scripts/install_packages.sh"; continue;;
[3]* ) sh "$PWD/scripts/setup_n.sh"; continue;;
[4]* ) curl -sS https://get.symfony.com/cli/installer | bash; continue;;
[Qq]* ) printf '\nA terminal restart may be necessary for changes to take affect\n'; exit;;
* ) printf '\n\nPlease enter a valid option\n';;
esac
done