Fix linting errors
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
ea4eba04ff
commit
1afc729663
7 changed files with 12 additions and 8 deletions
|
@ -17,7 +17,7 @@ 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[@]}
|
||||
output::list "${CONFIG_COMPOSER_PACKAGES[@]}"
|
||||
composer global require "${CONFIG_COMPOSER_PACKAGES[@]}" |& output::debug
|
||||
output::success "Packages successfully installed"
|
||||
fi
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
declare LIB_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||
declare LIB_DIR
|
||||
LIB_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
source "${LIB_DIR}/output.sh"
|
|
@ -31,7 +31,7 @@ output::success() {
|
|||
}
|
||||
|
||||
output::question() {
|
||||
printf " ${YELLOW}${1}${DEFAULT}" |& tee -a "${INSTALL_LOG}"
|
||||
echo -e " ${YELLOW}${1}${DEFAULT}\c" |& tee -a "${INSTALL_LOG}"
|
||||
}
|
||||
|
||||
output::error() {
|
||||
|
|
|
@ -20,7 +20,7 @@ output::section "NPM"
|
|||
|
||||
if output::prompt "Do you want to install global npm packages?"; then
|
||||
output::log "Installing ${#CONFIG_NPM_PACKAGES[@]} packages"
|
||||
output::list ${CONFIG_NPM_PACKAGES[@]}
|
||||
output::list "${CONFIG_NPM_PACKAGES[@]}"
|
||||
npm i -g "${CONFIG_NPM_PACKAGES[@]}" |& output::debug
|
||||
output::success "Packages successfully installed"
|
||||
fi
|
|
@ -15,7 +15,7 @@ output::section "Ruby"
|
|||
|
||||
if output::prompt "Do you want to install ruby gems?"; then
|
||||
output::log "Installing ${#CONFIG_RUBY_GEMS[@]} gems"
|
||||
output::list ${CONFIG_RUBY_GEMS[@]}
|
||||
output::list "${CONFIG_RUBY_GEMS[@]}"
|
||||
gem install "${CONFIG_RUBY_GEMS[@]}" |& output::debug
|
||||
output::success "Gems successfully installed"
|
||||
fi
|
|
@ -25,7 +25,7 @@ if output::prompt "Do you want to install a Rust toolchain?"; then
|
|||
output::success "Rust toolchain was installed and activated"
|
||||
|
||||
output::log "Installing components for Rust"
|
||||
output::list ${CONFIG_RUST_COMPONENTS[@]}
|
||||
output::list "${CONFIG_RUST_COMPONENTS[@]}"
|
||||
rustup -q component add "${CONFIG_RUST_COMPONENTS[@]}" |& output::debug
|
||||
output::success "Rust components were successfully installed"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue