aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorStefan Kangas2024-06-20 23:12:31 +0200
committerStefan Kangas2024-06-20 23:12:31 +0200
commitf3e80dd0f70aabb6abcddb0148f75356fb60c32b (patch)
tree3e228b44ce0872f559714f6af3d8b095322acf60 /admin
parentce85d3811daea42db78fc1c5bc4a7375ac5e209d (diff)
downloademacs-f3e80dd0f70aabb6abcddb0148f75356fb60c32b.tar.gz
emacs-f3e80dd0f70aabb6abcddb0148f75356fb60c32b.zip
* admin/emacs-shell-lib: Backport to Bash 4.4 or older.
Diffstat (limited to 'admin')
-rw-r--r--admin/emacs-shell-lib3
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/emacs-shell-lib b/admin/emacs-shell-lib
index 1c4d895fdb4..e639a4740a1 100644
--- a/admin/emacs-shell-lib
+++ b/admin/emacs-shell-lib
@@ -49,6 +49,9 @@ emacs_tempfiles=()
49 49
50emacs_tempfiles_cleanup () 50emacs_tempfiles_cleanup ()
51{ 51{
52 # This is needed on Bash 4.4 or older.
53 [ ${#emacs_tempfiles[@]} -eq 0 ] && return
54
52 for file in ${emacs_tempfiles[@]}; do 55 for file in ${emacs_tempfiles[@]}; do
53 rm -f "${file}" 2> /dev/null 56 rm -f "${file}" 2> /dev/null
54 done 57 done