Fix linting errors

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2020-03-19 19:30:50 +01:00
parent ea4eba04ff
commit 1afc729663
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
7 changed files with 12 additions and 8 deletions

View file

@ -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

View file

@ -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"

View file

@ -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() {

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -13,7 +13,9 @@
#
# USAGE:
# ./install
declare DOT_DIR="$(dirname "${BASH_SOURCE[0]}" | cd | pwd)"
declare DOT_DIR
DOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" || exit; pwd)"
declare INSTALL_DIR="${DOT_DIR}/.install"
declare SYSTEM_DIR="${DOT_DIR}/system"
INSTALL_LOG="${XDG_LOG_HOME}/install.log"
@ -67,4 +69,5 @@ source "${INSTALL_DIR}/shell.sh"
output::section "Post installation information"
echo "${BOLD}Make sure you do the following after this installation:"
echo " • Download settings for Visual Studio Code"
echo " • Reboot the system"
echo " • Reboot the system"