Update 3 files

- /home/.chezmoiscripts/_universal/run_onchange_before_9-ensure-node-version.tmpl
- /home/dot_local/bin/executable_provision.tmpl
- /local/provision.sh
This commit is contained in:
Brian Zalewski 2022-12-25 08:34:15 +00:00
parent c1a72a7d37
commit 34851b9cfc
3 changed files with 13 additions and 0 deletions

View file

@ -3,6 +3,9 @@
# Node.js version: {{ output "node" "--version" }}
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
### Ensure recent version of Node.js is being used
if command -v volta > /dev/null; then
if ! test "$(node --version | sed 's/^v//' | awk '{print $1}' | awk -F'.' ' ( $1 > 15) ')"; then

View file

@ -89,6 +89,11 @@ if command -v qubesctl > /dev/null; then
exit 0
fi
### Source Homebrew if it installed but not in PATH
if ! command -v brew > /dev/null && [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
### System package manager update / Homebrew dependencies
if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null; then
# shellcheck disable=SC2016

View file

@ -255,6 +255,11 @@ if command -v qubesctl > /dev/null; then
exit 0
fi
### Source Homebrew if it installed but not in PATH
if ! command -v brew > /dev/null && [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
### System package manager update / Homebrew dependencies
if ! command -v curl > /dev/null || ! command -v git > /dev/null || ! command -v brew > /dev/null; then
# shellcheck disable=SC2016