mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
Fix: Changes to have command usage
This commit is contained in:
@@ -39,4 +39,7 @@ have gh && {
|
||||
done
|
||||
|
||||
msg_ok "Done"
|
||||
} || msg_err "gh (GitHub Client) could not be found, please install it first"
|
||||
}
|
||||
|
||||
! have gh \
|
||||
&& msg_err "gh (GitHub Client) could not be found, please install it first"
|
||||
|
||||
@@ -34,4 +34,6 @@ have go && {
|
||||
done
|
||||
|
||||
msg_ok "Done"
|
||||
} || msg "go hasn't been installed yet."
|
||||
}
|
||||
|
||||
! have go && msg "go hasn't been installed yet."
|
||||
|
||||
@@ -36,4 +36,6 @@ have npm && {
|
||||
msg_run "Upgrading all global packages"
|
||||
npm -g --no-progress --no-timing --no-fund outdated
|
||||
npm -g --no-timing --no-fund upgrade
|
||||
} || msg_err "npm could not be found."
|
||||
}
|
||||
|
||||
! have npm && msg_err "npm could not be found."
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
set -e
|
||||
|
||||
have ntfy && {
|
||||
msg "ntfy already installed"
|
||||
} || {
|
||||
have ntfy && msg "ntfy already installed"
|
||||
|
||||
! have ntfy && {
|
||||
case $(dfm check arch) in
|
||||
Linux)
|
||||
NTFY_ARCH="linux_$(arch)"
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
# Ismo Vuorinen <https://github.com/ivuorinen> 2018
|
||||
#
|
||||
|
||||
[ "$(uname)" != "Darwin" ] && echo "Not a macOS system" && exit 0
|
||||
|
||||
! have xcode-select \
|
||||
&& msg_err "xcode-select could not be found, skipping" \
|
||||
&& exit 0
|
||||
|
||||
# Ask for the administrator password upfront
|
||||
sudo -v
|
||||
|
||||
|
||||
Reference in New Issue
Block a user