diff options
| author | Stefan Kangas | 2024-06-20 23:12:31 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2024-06-20 23:12:31 +0200 |
| commit | f3e80dd0f70aabb6abcddb0148f75356fb60c32b (patch) | |
| tree | 3e228b44ce0872f559714f6af3d8b095322acf60 /admin | |
| parent | ce85d3811daea42db78fc1c5bc4a7375ac5e209d (diff) | |
| download | emacs-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-lib | 3 |
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 | ||
| 50 | emacs_tempfiles_cleanup () | 50 | emacs_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 |