Commit f491e84f authored by Ling Sun's avatar Ling Sun
Browse files

fix cmd path

parent 08422c68
......@@ -48,7 +48,7 @@ export XAPPLRESDIR=${MCR_ROOT}/X11/app-defaults
set -e
# make temporary home
TEMPDIR=$(mktemp -d)
TEMPDIR=$(/bin/mktemp -d)
OLDHOME="$HOME"
export HOME="$TEMPDIR"
printf "using temp home: %s\n" "$TEMPDIR" >&2
......@@ -60,7 +60,7 @@ cleanup() {
find . \
! -wholename '*/.matlab*' \
! -wholename '*/.mcr_cache*' \
| cpio -pdu --quiet "${OLDHOME}")
| /bin/cpio -pdu --quiet "${OLDHOME}")
rm -rf "$TEMPDIR"
printf " done.\n" >&2
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment