Skip to content

Commit 04bcc17

Browse files
committed
fix(post_action): correct sed syntax for removing the last line
• Removed unnecessary file argument in the sed command. • Ensured the correct syntax is used for processing the SSH_KNOWN_HOSTS_FILE. • Improved reliability and accuracy of the script by properly handling file processing.
1 parent caacfbd commit 04bcc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

post_action.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SSH_KNOWN_HOSTS_FILE="${HOME}/.ssh/known_hosts"
44
TEMP_FILE="/tmp/718f4157-5493-43b2-837b-3ccb27f78e7b"
55

6-
sed '$ d' file "${SSH_KNOWN_HOSTS_FILE}" > "${TEMP_FILE}"
6+
sed '$ d' "${SSH_KNOWN_HOSTS_FILE}" > "${TEMP_FILE}"
77
cat "${TEMP_FILE}" > "${SSH_KNOWN_HOSTS_FILE}"
88
rm -rf "${TEMP_FILE}"
99

0 commit comments

Comments
 (0)