mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-08 13:50:53 +00:00
fix(shell): harden shared.sh and dfm for set -euo pipefail
Use ${VAR:-} defaults in shared.sh to prevent set -u failures on
unset variables (DOTFILES, ZSH_CUSTOM_COMPLETION_PATH, FPATH).
Export DOTFILES/BREWFILE/HOSTFILES in dfm so sourced scripts see them.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
: "${DOTFILES:=$HOME/.dotfiles}"
|
||||
: "${BREWFILE:=$DOTFILES/config/homebrew/Brewfile}"
|
||||
: "${HOSTFILES:=$DOTFILES/hosts}"
|
||||
export DOTFILES BREWFILE HOSTFILES
|
||||
|
||||
SCRIPT=$(basename "$0")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user