* admin/emacs-shell-lib: Backport to Bash 4.4 or older.

This commit is contained in:
Stefan Kangas 2024-06-20 23:12:31 +02:00
parent ce85d3811d
commit f3e80dd0f7

View file

@ -49,6 +49,9 @@ emacs_tempfiles=()
emacs_tempfiles_cleanup ()
{
# This is needed on Bash 4.4 or older.
[ ${#emacs_tempfiles[@]} -eq 0 ] && return
for file in ${emacs_tempfiles[@]}; do
rm -f "${file}" 2> /dev/null
done