Merge pull request #3 from darlinghq/hardcode_path_hotfix

Don't Hardcode "arch" and "mktemp" Path
This commit is contained in:
CuriousTommy 2023-05-14 14:49:05 -07:00 committed by GitHub
commit c60e806741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,9 +91,15 @@ fi
cppflags="-D__MACH30__"
files=
arch=`/usr/bin/arch`
## DARLING
# arch=`/usr/bin/arch`
arch=`uname -m`
## /DARLING
WORKTMP=`/usr/bin/mktemp -d "${TMPDIR:-/tmp}/mig.XXXXXX"`
## DARLING
# WORKTMP=`/usr/bin/mktemp -d "${TMPDIR:-/tmp}/mig.XXXXXX"`
WORKTMP=`mktemp -d "${TMPDIR:-/tmp}/mig.XXXXXX"`
## /DARLING
if [ $? -ne 0 ]; then
echo "Failure creating temporary work directory: ${WORKTMP}"
echo "Exiting..."