We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aca0616 commit da78b96Copy full SHA for da78b96
1 file changed
usr/bin/text-safety-scan
@@ -33,7 +33,9 @@ cleanup() {
33
trap - EXIT
34
## captured_stdin_file is inherited from text_safety_scan function.
35
## captured_stdin_file is set prior setting up the 'trap'.
36
- safe-rm -f -- "${captured_stdin_file}"
+ if [ -n "${captured_stdin_file-}" ]; then
37
+ safe-rm -f -- "${captured_stdin_file}"
38
+ fi
39
exit "${_exit_code}"
40
}
41
0 commit comments