Skip to content

Commit 1599afd

Browse files
committed
improve
1 parent d13f6cc commit 1599afd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

usr/bin/gpg-dearmor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if ! test -w "$target_folder" ; then
2727
fi
2828

2929
exit_handler() {
30-
rm -rf "$temp_dir"
30+
safe-rm -r -f -- "$temp_dir"
3131
}
3232

3333
trap exit_handler EXIT
@@ -44,7 +44,7 @@ cat "$source_file" | \
4444
--no-options \
4545
--homedir "$temp_dir" \
4646
--no-default-keyring \
47-
| tee "$target_file" >/dev/null
47+
| tee -- "$target_file" >/dev/null
4848

4949
if ! test -r "$target_file" ; then
5050
echo "$0: ERROR: target_file '$target_file' not readable after writing!" >&2

0 commit comments

Comments
 (0)