Run script on macOS only
This commit is contained in:
parent
b883ffa0a6
commit
66f00729a6
1 changed files with 19 additions and 18 deletions
|
@ -1,4 +1,3 @@
|
|||
{{- if (ne .host.distro.family "darwin") -}}
|
||||
#!/usr/bin/env bash
|
||||
# @file macOS Common Dependencies
|
||||
# @brief Ensures common system dependencies are installed via Homebrew on macOS
|
||||
|
@ -14,6 +13,8 @@
|
|||
export VOLTA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/volta"
|
||||
export PATH="$VOLTA_HOME/bin:$PATH"
|
||||
|
||||
### Ensure system is macOS
|
||||
if [ -d /Applications ] && [ -d /System ]; then
|
||||
if command -v brew > /dev/null; then
|
||||
logg 'Installing base dependencies for macOS using `brew bundle`'
|
||||
logg info 'Dependencies: age asdf jq node glow go go-task/tap/go-task gnupg gum m-cli progress volta yq m-cli yq zx'
|
||||
|
@ -35,4 +36,4 @@ if command -v brew > /dev/null; then
|
|||
else
|
||||
logg error '`brew` was not found in the PATH'
|
||||
fi
|
||||
{{ end -}}
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue