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
|
5
install
5
install
|
@ -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"
|
||||
|
@ -68,3 +70,4 @@ 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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue