Fix init process - reducing assumptions
This commit is contained in:
parent
9a15113955
commit
6c93527142
4 changed files with 6 additions and 3 deletions
|
@ -7,6 +7,7 @@ cd "$CHEZMOI_SOURCE_DIR"
|
|||
#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"
|
||||
set -x
|
||||
if [ -r "base.chezmoiroot.$CZ_SYS.$CZ_CHASSIS" ]; then
|
||||
ln -s "base.chezmoiroot.$CZ_SYS.$CZ_CHASSIS" .chezmoiroot
|
||||
elif [ -r "base.chezmoiroot.$CZ_SYS" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue