1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

* 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 () emacs_tempfiles_cleanup ()
{ {
# This is needed on Bash 4.4 or older.
[ ${#emacs_tempfiles[@]} -eq 0 ] && return
for file in ${emacs_tempfiles[@]}; do for file in ${emacs_tempfiles[@]}; do
rm -f "${file}" 2> /dev/null rm -f "${file}" 2> /dev/null
done done