From 2ce402a9c54cd64389cf4c4f71b5c7a0519eefe8 Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Fri, 4 Aug 2023 09:40:35 +1000 Subject: [PATCH] Forgot about the template funcs "txtar" --- .../cmd/testdata/scripts/templatefuncs_windows.txtar | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/cmd/testdata/scripts/templatefuncs_windows.txtar b/internal/cmd/testdata/scripts/templatefuncs_windows.txtar index 3de4d475bb8..0dd93fcb0da 100644 --- a/internal/cmd/testdata/scripts/templatefuncs_windows.txtar +++ b/internal/cmd/testdata/scripts/templatefuncs_windows.txtar @@ -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 ^$