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 ...@@ -48,7 +48,7 @@ export XAPPLRESDIR=${MCR_ROOT}/X11/app-defaults
set -e set -e
# make temporary home # make temporary home
TEMPDIR=$(mktemp -d) TEMPDIR=$(/bin/mktemp -d)
OLDHOME="$HOME" OLDHOME="$HOME"
export HOME="$TEMPDIR" export HOME="$TEMPDIR"
printf "using temp home: %s\n" "$TEMPDIR" >&2 printf "using temp home: %s\n" "$TEMPDIR" >&2
...@@ -60,7 +60,7 @@ cleanup() { ...@@ -60,7 +60,7 @@ cleanup() {
find . \ find . \
! -wholename '*/.matlab*' \ ! -wholename '*/.matlab*' \
! -wholename '*/.mcr_cache*' \ ! -wholename '*/.mcr_cache*' \
| cpio -pdu --quiet "${OLDHOME}") | /bin/cpio -pdu --quiet "${OLDHOME}")
rm -rf "$TEMPDIR" rm -rf "$TEMPDIR"
printf " done.\n" >&2 printf " done.\n" >&2
} }
......
Supports Markdown
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