diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-06-29 10:50:05 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-06-29 11:01:53 +0200 |
commit | 2a00421716ee01efb6ab17f9c3e934b968d42b92 (patch) | |
tree | c67469ba4d66c3bb05572ee432f607db6d826a4a /src/platform | |
parent | f847dfb10b01bbe5f53c3d66badedfc1be9e9046 (diff) | |
download | pass-2a00421716ee01efb6ab17f9c3e934b968d42b92.tar.gz pass-2a00421716ee01efb6ab17f9c3e934b968d42b92.tar.bz2 pass-2a00421716ee01efb6ab17f9c3e934b968d42b92.zip |
darwin: fix mktemp argument order
Diffstat (limited to '')
-rw-r--r-- | src/platform/darwin.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh index 24bd048..9cc773d 100644 --- a/src/platform/darwin.sh +++ b/src/platform/darwin.sh @@ -24,7 +24,7 @@ tmpdir() { rm -rf "$SECURE_TMPDIR" } trap unmount_tmpdir INT TERM EXIT - SECURE_TMPDIR="$(mktemp -t "$template" -d)" + SECURE_TMPDIR="$(mktemp -d -t "$PROGRAM")" DARWIN_RAMDISK_DEV="$(hdid -drivekey system-image=yes -nomount 'ram://32768' | cut -d ' ' -f 1)" # 32768 sectors = 16 mb [[ -z $DARWIN_RAMDISK_DEV ]] && die "Error: could not create ramdisk." newfs_hfs -M 700 "$DARWIN_RAMDISK_DEV" &>/dev/null || die "Error: could not create filesystem on ramdisk." |