Skip to content

Commit 53557b9

Browse files
authored
Update sign_verify_file_ssh.sh
1 parent 524760c commit 53557b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sign_verify_file_ssh.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ usage() {
1212
echo " $0 sign <private_key> <file>"
1313
echo " $0 verify <allowed_signers_file> <file> [signature_file]"
1414
echo "where"
15-
echo "- <private_key>: Path to the SSH private key (if a KEY_passphrase exists it can be"
15+
echo "- <private_key>: Path to the SSH private key (if a passphrase exists it can be"
1616
echo " provided via the KEY_PASSPHRASE environment variable)"
1717
echo "- <file>: Path to the file to be signed/verified"
1818
echo "- <allowed_signers_file>: Path to the allowed signers file"
@@ -38,7 +38,7 @@ FILE_TO_SIGN="$3"
3838
# Ensure the file exists
3939
if [ ! -f "$FILE_TO_SIGN" ]; then
4040
echo "Error: File '$FILE_TO_SIGN' not found."
41-
exit 1
41+
exit $FILE_PROBLEM
4242
fi
4343

4444
# Function to securely convert the private key to OpenSSH format

0 commit comments

Comments
 (0)