Perhaps something like this somewhere in make-ssl-cert:
if [ ! -d "$HOME" ]; then temphome="$(mktemp -d)" cleanup () { rm -rf "$temphome" } trap cleanup EXIT HUP INT QUIT TERM export HOME="$temphome" fi
Perhaps something like this somewhere in make-ssl-cert:
if [ ! -d "$HOME" ]; then "$(mktemp -d)"
temphome=
cleanup () {
rm -rf "$temphome"
}
trap cleanup EXIT HUP INT QUIT TERM
export HOME="$temphome"
fi