Path fix for TMPFILE error on Win10 (#4)

This commit is contained in:
Willem Oosting 2022-07-03 08:36:20 +02:00 committed by GitHub
parent a0839c0707
commit c00214f816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -22,8 +22,8 @@ CONFIGFILE=".${PROG}.conf"
JOPLIN_DIR=
JOPLIN_SYNC_TARGET=
VALID_RESOURCES=`mktemp "${TMPDIR:-/tmp/}$PROG.vr.XXXXXXXX"`
DELETE_RESOURCES=`mktemp "${TMPDIR:-/tmp/}$PROG.dr.XXXXXXXX"`
VALID_RESOURCES=`mktemp "${TMPDIR:-/tmp}/$PROG.vr.XXXXXXXX"`
DELETE_RESOURCES=`mktemp "${TMPDIR:-/tmp}/$PROG.dr.XXXXXXXX"`
# on macOS, the default getopt is a useless piece of shit
# install getopt via MacPorts or brew and put it in the PATH before /usr/bin

2
jnrmor
View File

@ -16,7 +16,7 @@ JOPLIN_DIR=
CLIPPER_TOKEN=
CLIPPER_PORT=
TMPFILE=`mktemp "${TMPDIR:-/tmp/}$PROG.XXXXXXXX"`
TMPFILE=`mktemp "${TMPDIR:-/tmp}/$PROG.XXXXXXXX"`
# on macOS, the default getopt is a useless piece of shit
# install getopt via MacPorts or brew and put it in the PATH before /usr/bin