Add script log for elevation scripts.

This commit is contained in:
js0ny 2025-11-08 08:13:06 +00:00
parent 2a1127bf10
commit 6ee67769a6
25 changed files with 102 additions and 99 deletions

View file

@ -1,4 +0,0 @@
#!/bin/sh
# shellcheck shell=sh
sudo cp $CHEZMOI_SOURCE_DIR/dot_config/bash/xdg-compat.sh /etc/profile.d/xdg-compat.sh

View file

@ -0,0 +1,12 @@
#!/bin/sh
# shellcheck shell=sh
{{ if .wheel }}
echo "[ACTION] Elevation required: "
echo " Setting XDG Environment Variables to global scope"
sudo cp $CHEZMOI_SOURCE_DIR/.chezmoitemplates/bash_profile /etc/profile.d/xdg-compat.sh
{{ else }}
{{ end }}

View file

@ -1,9 +1,13 @@
#!/bin/sh
echo "[INFO] Running: zsh-set-env.sh"
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
{{ if .wheel }}
echo "[INFO] "
if [ -f /etc/zshenv ]; then
sudo cp "$CHEZMOI_SOURCE_DIR/dot_config/zsh/global.zshenv" /etc/zshenv
fi