From db69a65d58b0ee3508cd1c17cbe8775b91d3fbbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20K=C3=A4stner?= <4948415+fpunktk@users.noreply.github.com> Date: Fri, 18 Feb 2022 15:37:56 +0100 Subject: [PATCH] use /tmp if $HOME is not set --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db7dc5d..e04b320 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ trccmd() { [ ${#trcvar} -lt 65536 ] || { echo "ERROR: content of trcdir '$trcdir' is too big, even after minifying and compressing with '$*'" >&2; return 1; } # export $TRAVELRCDIR and create this directory, it could also be created in /tmp echo ' -export TRAVELRCDIR=$HOME/.travelrc.travelled +export TRAVELRCDIR=${HOME:-/tmp}/.travelrc.travelled readonly TRAVELRCDIR mkdir --parents $TRAVELRCDIR' # SSH_TTY should still be set to figure out whether this is a ssh session -- 2.30.2