Fix chemoi init to work with /tmp noexec

This commit is contained in:
Lockszmith (@kateryna) 2025-03-11 08:08:29 -04:00
parent 634455175a
commit e05ac4411f
3 changed files with 12 additions and 5 deletions

View file

@ -2,9 +2,9 @@
set -e
#env | grep -E 'chezmoi|^CZ'
env | grep -E 'chezmoi|^CZ'
cd "$CHEZMOI_SOURCE_DIR"
CZ_MODEL="$(ioreg -l | grep "product-name" | sed -Ee 's/^.*\<"(.*)\"\>.*$/\1/')"
#CZ_MODEL="$(ioreg -l | grep "product-name" | sed -Ee 's/^.*\<"(.*)\"\>.*$/\1/')"
set | grep '^CZ_'
printf 'System detected as %s/%s, setting up .chezmoiroot and initializing...\n' "$CZ_SYS" "$CZ_CHASSIS"
if [ -r "base.chezmoiroot.$CZ_SYS.$CZ_CHASSIS" ]; then