forked from twpayne/chezmoi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forgot about the template funcs "txtar"
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[!windows] skip 'Windows only' | ||
|
||
# test lookPathIn template function to find in specified script - success with extension | ||
exec chezmoi execute-template '{{ lookPathIn "winver.exe" "C:\\Windows\\System32" }}' | ||
stdout ^c:\\Windows\\winver.exe$ | ||
exec chezmoi execute-template '{{ lookPathIn "powershell.exe""c:\\windows\\system32;c:\\windows\\system64;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0" }}' | ||
stdout ^C:\\WINDOWS\\System32\\WindowsPowerShell\\v1\.0\\powershell.exe$ | ||
|
||
# test lookPathIn template function to find in specified script - success without extension | ||
exec chezmoi execute-template '{{ lookPathIn "winver" "C:\\Windows\\System32" }}' | ||
stdout ^c:\\Windows\\winver.exe$ | ||
exec chezmoi execute-template '{{ lookPathIn "powershell" "c:\\windows\\system32;c:\\windows\\system64;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0" }}' | ||
stdout ^C:\\WINDOWS\\System32\\WindowsPowerShell\\v1\.0\\powershell.exe$ | ||
|
||
# test lookPathIn template function to find in specified script - failure | ||
exec chezmoi execute-template '{{ lookPathIn "winver" "c:\\users" }}' | ||
exec chezmoi execute-template '{{ lookPathIn "weakshell" "c:\\windows\\system32;c:\\windows\\system64;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0" }}' | ||
stdout ^$ |