Overhaul install script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
ce2413484c
commit
b2e45c8af1
26 changed files with 692 additions and 407 deletions
23
.install/composer.sh
Normal file
23
.install/composer.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# composer.sh
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin@kaderli.dev>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# Installs global composer packages
|
||||
|
||||
CONFIG_COMPOSER_PACKAGES=(
|
||||
"laravel/installer"
|
||||
)
|
||||
|
||||
output::section "Composer"
|
||||
|
||||
if output::prompt "Do you want to install global composer packages?"; then
|
||||
output::log "Installing ${#CONFIG_COMPOSER_PACKAGES[@]} packages"
|
||||
output::list ${CONFIG_COMPOSER_PACKAGES[@]}
|
||||
composer global require "${CONFIG_COMPOSER_PACKAGES[@]}" |& output::debug
|
||||
output::success "Packages successfully installed"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue