Error when trying to decrypt #3147
-
This what I get when I try to run initialize my dotfiles with chezmoi.
Output of: diff --git a/decrypt-private-key.sh b/decrypt-private-key.sh
new file mode 100755
index 0000000000000000000000000000000000000000..cfaa57eb529481d092a72bdc481cc3bb5135da67
--- /dev/null
+++ b/decrypt-private-key.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ ! -f "$HOME/key.txt" ]; then
+ age --decrypt --output "$HOME/key.txt" "C:/Users/symph/.local/share/chezmoi/key.txt.age"
+ chmod 600 "$HOME/key.txt"
+fi
\ No newline at end of file
chezmoi: fork/exec C:\Users\symph\AppData\Local\Temp\2282338352.decrypt-private-key.sh: %1 is not a valid Win32 application. Output of: RESULT CHECK MESSAGE
ok version v2.36.1, commit 0b0fa89f612f5f885ccfc8c3890f515cc668c5c6, built at 2023-07-30T12:33:19Z, built by goreleaser
ok latest-version v2.36.1
ok os-arch windows/amd64
ok systeminfo Microsoft Windows 11 Home Single Language (10.0.22621 N/A Build 22621)
ok go-version go1.20.6 (gc)
ok executable ~/scoop/apps/chezmoi/current/chezmoi.exe
ok upgrade-method replace-executable
ok config-file ~/.config/chezmoi/chezmoi.toml, last modified 2023-08-03T18:53:55+05:30
ok source-dir ~/.local/share/chezmoi is a git working tree (clean)
ok suspicious-entries no suspicious entries
ok working-tree ~/.local/share/chezmoi is a git working tree (clean)
ok dest-dir ~ is a directory
ok cd-command found ~/scoop/apps/git/2.41.0.3/usr/bin/bash.exe
ok cd-args 'C:\\Users\\symph\\scoop\\apps\\git\\2.41.0.3\\usr\\bin\\bash.exe'
info diff-command not set
ok edit-command found C:/Windows/system32/notepad.exe
ok edit-args 'C:\\Windows\\system32\\notepad.exe'
ok git-command found ~/scoop/apps/git/2.41.0.3/mingw64/bin/git.exe, version 2.41.0
ok merge-command found ~/scoop/apps/git/2.41.0.3/usr/bin/vimdiff.exe
ok shell-command found ~/scoop/apps/git/2.41.0.3/usr/bin/bash.exe
ok shell-args 'C:\\Users\\symph\\scoop\\apps\\git\\2.41.0.3\\usr\\bin\\bash.exe'
ok age-command found ~/scoop/shims/age.exe, version 1.1.1
ok gpg-command found ~/scoop/apps/git/2.41.0.3/usr/bin/gpg.exe, version 2.2.41
info pinentry-command not set
info 1password-command op not found in $PATH
info bitwarden-command bw not found in $PATH
info dashlane-command dcli not found in $PATH
info gopass-command gopass not found in $PATH
info keepassxc-command keepassxc-cli not found in $PATH
info keepassxc-db not set
info keeper-command keeper not found in $PATH
info lastpass-command lpass not found in $PATH
info pass-command pass not found in $PATH
info passhole-command ph not found in $PATH
info rbw-command rbw not found in $PATH
info vault-command vault not found in $PATH
info vlt-command vlt not found in $PATH
info secret-command not set |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
You need to include much more information if you want people to help you. See the support request issue template and do some research on how to write a good support request or bug report. |
Beta Was this translation helpful? Give feedback.
-
Your On Windows, you need to disable the script and either install your private key manually or write an equivalent Windows batch script or PowerShell script. |
Beta Was this translation helpful? Give feedback.
Your
decrypt-private-key.sh
script is a shell script that only runs on UNIX-like systems. It doesn't work on Windows.On Windows, you need to disable the script and either install your private key manually or write an equivalent Windows batch script or PowerShell script.