X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=blobdiff_plain;f=common;h=ec7b8e2cfd816f1faadc6b2ffd8c45c2da37fc28;hp=4e1d115cb8473dd15ccba7c6fac806746cc8e4c7;hb=a67f16ae830226c7afef2f3fad72efe46f3b5ed9;hpb=32134f1512eab90da01e9cfd9f676bffef27a939 diff --git a/common b/common index 4e1d115..ec7b8e2 100644 --- a/common +++ b/common @@ -107,7 +107,7 @@ gsu_make_tempfile() if [[ "${template:0:1}" != '/' ]]; then # relative path if (($# > 1)); then dir="$2" - elif [[ -n "$TMPDIR" ]]; then + elif [[ -n "${TMPDIR:-}" ]]; then dir="$TMPDIR" else dir="/tmp"