diff --git a/update_element_im.sh b/update_element_im.sh index 17e97a7..f4f860f 100755 --- a/update_element_im.sh +++ b/update_element_im.sh @@ -11,7 +11,7 @@ function version_gt() { function cleanup() { local tmpdir=$1 - if [ -n "$(ls -A ${tempdir})" ]; then + if [ -n "$(ls -A ${tmpdir})" ]; then rm -r "${tmpdir:?}"/* fi rmdir "${tmpdir}"