X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=blobdiff_plain;f=common;h=4b69b2351942178c22e7cc9141713bce5b62e0d6;hp=4e1d115cb8473dd15ccba7c6fac806746cc8e4c7;hb=46d356bc055978057542e999892ec6e0cf1c0153;hpb=32134f1512eab90da01e9cfd9f676bffef27a939 diff --git a/common b/common index 4e1d115..4b69b23 100644 --- a/common +++ b/common @@ -14,11 +14,13 @@ E_GSU_BAD_BOOL bad value for boolian option E_GSU_BAD_OPTION_TYPE invalid option type E_GSU_BAD_ARG_COUNT invalid number of arguments E_GSU_EDITOR failed to execute editor +E_GSU_INVAL invalid argument E_GSU_MKDIR failed to create directory E_GSU_GETOPTS getopts error E_GSU_DIALOG dialog error E_GSU_MKTEMP mktemp error E_GSU_MENU_TREE invalid menu tree +E_GSU_XCMD external command failed ${gsu_errors:-} " local a b i=0 @@ -107,7 +109,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"