diff options
Diffstat (limited to 'admin/emacs-shell-lib')
-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=() 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 |