chore(codestyle): Code style fixes, configs

This commit is contained in:
2023-05-22 15:59:58 +03:00
parent 47703cd182
commit b259e4b992
11 changed files with 12 additions and 25 deletions

View File

@@ -4,7 +4,7 @@
# shellcheck source="shared.sh"
source "$HOME/.dotfiles/scripts/shared.sh"
! have php && msg_err "PHP Not Available, cannot install composer" && exit 0;
! have php && msg_err "PHP Not Available, cannot install composer" && exit 0
EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
@@ -21,4 +21,3 @@ RESULT=$?
rm composer-setup.php
mv composer.phar ~/.local/bin/composer
exit $RESULT

View File

@@ -14,4 +14,3 @@ if [ ! -d "$FZF_PATH" ]; then
else
msg_done "fzf ($FZF_PATH/) already installed"
fi

View File

@@ -6,7 +6,7 @@ source "$HOME/.dotfiles/scripts/shared.sh"
! have gh \
&& msg_err "gh (GitHub Client) could not be found, please install it first" \
&& exit 0;
&& exit 0
extensions=(
# GitHub CLI extension for generating a report on repository dependencies.
@@ -42,4 +42,3 @@ for ext in "${extensions[@]}"; do
done
msg_ok "Done"

View File

@@ -4,7 +4,7 @@
# shellcheck source=shared.sh
source "$HOME/.dotfiles/scripts/shared.sh"
! have go && msg "go hasn't been installed yet." && exit 0;
! have go && msg "go hasn't been installed yet." && exit 0
packages=(
# sysadmin/scripting utilities, distributed as a single binary
@@ -37,4 +37,3 @@ for pkg in "${packages[@]}"; do
done
msg_ok "Done"

View File

@@ -6,7 +6,7 @@
source "$HOME/.dotfiles/scripts/shared.sh"
set -e
have ntfy && msg "ntfy already installed" && exit 0;
have ntfy && msg "ntfy already installed" && exit 0
case $(dfm check arch) in
Linux)
@@ -33,4 +33,3 @@ if [ ! -f "$HOME/.config/ntfy/client.yml" ]; then
fi
rm -rf "${NTFY_DEST}" "${NTFY_DEST}.tar.gz"