We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8567bcd commit 74eea76Copy full SHA for 74eea76
src/main.sh
@@ -83,7 +83,11 @@ else
83
# ssh-add can use the SSH_ASKPASS program to get a passphrase.
84
# We create a temporary script that just echoes our passphrase.
85
SSH_ASKPASS_SCRIPT="/tmp/askpass.sh"
86
- echo "echo \"${INPUT_SSH_PASSPHRASE}\"" > "${SSH_ASKPASS_SCRIPT}"
+
87
+ # ***** THE FIX IS HERE *****
88
+ # This line now adds `#!/bin/sh` to make the script executable.
89
+ echo -e "#!/bin/sh\necho \"${INPUT_SSH_PASSPHRASE}\"" > "${SSH_ASKPASS_SCRIPT}"
90
91
chmod +x "${SSH_ASKPASS_SCRIPT}"
92
93
# Set SSH_ASKPASS and DISPLAY, then call ssh-add.
0 commit comments