Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove unmanaged files from exact_ directories containing extern…
…al files
- Loading branch information
Showing
3 changed files
with
93 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
httpd www | ||
|
||
# test that chezmoi apply removes unmanaged files from an exact_ directory containing an external | ||
exists $HOME/.local/bin/unmanaged | ||
exec chezmoi apply --debug | ||
cmp $HOME/.local/bin/file www/file | ||
! exists $HOME/.local/bin/unmanaged | ||
|
||
-- home/user/.local/bin/unmanaged -- | ||
-- home/user/.local/share/chezmoi/.chezmoiexternal.toml.tmpl -- | ||
[".local/bin/file"] | ||
type = "file" | ||
url = "{{ env "HTTPD_URL" }}/file" | ||
-- home/user/.local/share/chezmoi/dot_local/exact_bin/.keep -- | ||
-- www/file -- | ||
# contents of file |