Fix chemoi init to work with /tmp noexec
This commit is contained in:
parent
634455175a
commit
e05ac4411f
3 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue