Skip to content

Commit 793a1bb

Browse files
committed
cleanup
1 parent 6ec1c84 commit 793a1bb

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

usr/bin/gpg-dearmor

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,6 @@ if ! test -w "$target_folder"; then
3030
exit 4
3131
fi
3232

33-
exit_handler() {
34-
if [ -z "${temp_dir-}" ]; then
35-
return 0
36-
fi
37-
safe-rm -r -f -- "$temp_dir"
38-
}
39-
40-
trap exit_handler EXIT
41-
42-
[ -n "${temp_dir-}" ] || temp_dir="$(mktemp --directory)"
43-
if ! test -w "$temp_dir"; then
44-
printf '%s\n' "$0: ERROR: temp_dir '$temp_dir' not writeable!" >&2
45-
exit 5
46-
fi
47-
4833
sq packet dearmor --overwrite --output "$target_file" -- "$source_file"
4934

5035
if ! test -r "$target_file"; then

0 commit comments

Comments
 (0)