Latest
This commit is contained in:
parent
307846ecd5
commit
75ef11bf73
4 changed files with 28 additions and 25 deletions
|
@ -214,7 +214,6 @@ diff:
|
||||||
- "--paging"
|
- "--paging"
|
||||||
- never
|
- never
|
||||||
exclude:
|
exclude:
|
||||||
- directory
|
|
||||||
- externals
|
- externals
|
||||||
- scripts
|
- scripts
|
||||||
edit:
|
edit:
|
||||||
|
|
|
@ -637,6 +637,7 @@ runChezmoi() {
|
||||||
LOG_FILE="$HOME/.local/var/log/install.doctor/chezmoi-apply-$(date +%s).log"
|
LOG_FILE="$HOME/.local/var/log/install.doctor/chezmoi-apply-$(date +%s).log"
|
||||||
|
|
||||||
### Apply command flags
|
### Apply command flags
|
||||||
|
COMMON_MODIFIERS="--use-builtin-diff"
|
||||||
FORCE_MODIFIER=""
|
FORCE_MODIFIER=""
|
||||||
if [ -n "$HEADLESS_INSTALL" ]; then
|
if [ -n "$HEADLESS_INSTALL" ]; then
|
||||||
logg info 'Running chezmoi apply forcefully because HEADLESS_INSTALL is set'
|
logg info 'Running chezmoi apply forcefully because HEADLESS_INSTALL is set'
|
||||||
|
@ -656,11 +657,11 @@ runChezmoi() {
|
||||||
### Run chezmoi apply
|
### Run chezmoi apply
|
||||||
if command -v unbuffer > /dev/null; then
|
if command -v unbuffer > /dev/null; then
|
||||||
if command -v caffeinate > /dev/null; then
|
if command -v caffeinate > /dev/null; then
|
||||||
logg info "Running: unbuffer -p caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: unbuffer -p caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
unbuffer -p caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
unbuffer -p caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
logg info "Running: unbuffer -p chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: unbuffer -p chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
unbuffer -p chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
unbuffer -p chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
logg info "Unbuffering log file $LOG_FILE"
|
logg info "Unbuffering log file $LOG_FILE"
|
||||||
UNBUFFER_TMP="$(mktemp)"
|
UNBUFFER_TMP="$(mktemp)"
|
||||||
|
@ -668,11 +669,11 @@ runChezmoi() {
|
||||||
mv -f "$UNBUFFER_TMP" "$LOG_FILE"
|
mv -f "$UNBUFFER_TMP" "$LOG_FILE"
|
||||||
else
|
else
|
||||||
if command -v caffeinate > /dev/null; then
|
if command -v caffeinate > /dev/null; then
|
||||||
logg info "Running: caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
logg info "Running: chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -713,6 +714,7 @@ postProvision() {
|
||||||
# @description The `provisionLogic` function is used to define the order of the script. All of the functions it relies on are defined
|
# @description The `provisionLogic` function is used to define the order of the script. All of the functions it relies on are defined
|
||||||
# above.
|
# above.
|
||||||
provisionLogic() {
|
provisionLogic() {
|
||||||
|
loadHomebrew
|
||||||
logg info "Setting environment variables" && setEnvironmentVariables
|
logg info "Setting environment variables" && setEnvironmentVariables
|
||||||
logg info "Handling CI variables" && setCIEnvironmentVariables
|
logg info "Handling CI variables" && setCIEnvironmentVariables
|
||||||
logg info "Ensuring WARP is disconnected" && ensureWarpDisconnected
|
logg info "Ensuring WARP is disconnected" && ensureWarpDisconnected
|
||||||
|
|
|
@ -637,6 +637,7 @@ runChezmoi() {
|
||||||
LOG_FILE="$HOME/.local/var/log/install.doctor/chezmoi-apply-$(date +%s).log"
|
LOG_FILE="$HOME/.local/var/log/install.doctor/chezmoi-apply-$(date +%s).log"
|
||||||
|
|
||||||
### Apply command flags
|
### Apply command flags
|
||||||
|
COMMON_MODIFIERS="--use-builtin-diff"
|
||||||
FORCE_MODIFIER=""
|
FORCE_MODIFIER=""
|
||||||
if [ -n "$HEADLESS_INSTALL" ]; then
|
if [ -n "$HEADLESS_INSTALL" ]; then
|
||||||
logg info 'Running chezmoi apply forcefully because HEADLESS_INSTALL is set'
|
logg info 'Running chezmoi apply forcefully because HEADLESS_INSTALL is set'
|
||||||
|
@ -656,11 +657,11 @@ runChezmoi() {
|
||||||
### Run chezmoi apply
|
### Run chezmoi apply
|
||||||
if command -v unbuffer > /dev/null; then
|
if command -v unbuffer > /dev/null; then
|
||||||
if command -v caffeinate > /dev/null; then
|
if command -v caffeinate > /dev/null; then
|
||||||
logg info "Running: unbuffer -p caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: unbuffer -p caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
unbuffer -p caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
unbuffer -p caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
logg info "Running: unbuffer -p chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: unbuffer -p chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
unbuffer -p chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
unbuffer -p chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
logg info "Unbuffering log file $LOG_FILE"
|
logg info "Unbuffering log file $LOG_FILE"
|
||||||
UNBUFFER_TMP="$(mktemp)"
|
UNBUFFER_TMP="$(mktemp)"
|
||||||
|
@ -668,11 +669,11 @@ runChezmoi() {
|
||||||
mv -f "$UNBUFFER_TMP" "$LOG_FILE"
|
mv -f "$UNBUFFER_TMP" "$LOG_FILE"
|
||||||
else
|
else
|
||||||
if command -v caffeinate > /dev/null; then
|
if command -v caffeinate > /dev/null; then
|
||||||
logg info "Running: caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
logg info "Running: chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -329,6 +329,7 @@ runChezmoi() {
|
||||||
LOG_FILE="$HOME/.local/var/log/install.doctor/chezmoi-apply-$(date +%s).log"
|
LOG_FILE="$HOME/.local/var/log/install.doctor/chezmoi-apply-$(date +%s).log"
|
||||||
|
|
||||||
### Apply command flags
|
### Apply command flags
|
||||||
|
COMMON_MODIFIERS="--use-builtin-diff"
|
||||||
FORCE_MODIFIER=""
|
FORCE_MODIFIER=""
|
||||||
if [ -n "$HEADLESS_INSTALL" ]; then
|
if [ -n "$HEADLESS_INSTALL" ]; then
|
||||||
logg info 'Running chezmoi apply forcefully because HEADLESS_INSTALL is set'
|
logg info 'Running chezmoi apply forcefully because HEADLESS_INSTALL is set'
|
||||||
|
@ -348,11 +349,11 @@ runChezmoi() {
|
||||||
### Run chezmoi apply
|
### Run chezmoi apply
|
||||||
if command -v unbuffer > /dev/null; then
|
if command -v unbuffer > /dev/null; then
|
||||||
if command -v caffeinate > /dev/null; then
|
if command -v caffeinate > /dev/null; then
|
||||||
logg info "Running: unbuffer -p caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: unbuffer -p caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
unbuffer -p caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
unbuffer -p caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
logg info "Running: unbuffer -p chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: unbuffer -p chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
unbuffer -p chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
unbuffer -p chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
logg info "Unbuffering log file $LOG_FILE"
|
logg info "Unbuffering log file $LOG_FILE"
|
||||||
UNBUFFER_TMP="$(mktemp)"
|
UNBUFFER_TMP="$(mktemp)"
|
||||||
|
@ -360,11 +361,11 @@ runChezmoi() {
|
||||||
mv -f "$UNBUFFER_TMP" "$LOG_FILE"
|
mv -f "$UNBUFFER_TMP" "$LOG_FILE"
|
||||||
else
|
else
|
||||||
if command -v caffeinate > /dev/null; then
|
if command -v caffeinate > /dev/null; then
|
||||||
logg info "Running: caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
caffeinate chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
caffeinate chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
logg info "Running: chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
logg info "Running: chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER"
|
||||||
chezmoi apply $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
chezmoi apply $COMMON_MODIFIERS $DEBUG_MODIFIER $KEEP_GOING_MODIFIER $FORCE_MODIFIER 2>&1 | tee /dev/tty | ts '[%Y-%m-%d %H:%M:%S]' > "$LOG_FILE" || CHEZMOI_EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue