8 lines
272 B
Cheetah
8 lines
272 B
Cheetah
|
#!/bin/sh
|
||
|
|
||
|
if [ ! -f "${HOME}/.config/chezmoi/key.txt" ]; then
|
||
|
mkdir -p "${HOME}/.config/chezmoi"
|
||
|
chezmoi age decrypt --output "${HOME}/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/key.txt.age"
|
||
|
chmod 600 "${HOME}/.config/chezmoi/key.txt"
|
||
|
fi
|