summaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-09-18 05:44:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-18 05:44:11 +0200
commita679d9f46e8244af7fbb83a2f6d8712f527f4447 (patch)
tree981b27b0e71d54fdec6f27b72eddcb180b813d6c /src/platform
parent1ab2c0734c7676acaded44c12716fd3c2a612d8d (diff)
downloadpass-a679d9f46e8244af7fbb83a2f6d8712f527f4447.tar.gz
pass-a679d9f46e8244af7fbb83a2f6d8712f527f4447.tar.bz2
pass-a679d9f46e8244af7fbb83a2f6d8712f527f4447.zip
Quote the template.
Diffstat (limited to '')
-rw-r--r--src/platform/darwin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index 3370618..343c7ee 100644
--- a/src/platform/darwin.sh
+++ b/src/platform/darwin.sh
@@ -21,7 +21,7 @@ tmpdir() {
rmdir "$tmp_dir"
}
trap cleanup_tmp INT TERM EXIT
- tmp_dir="$(mktemp -t $template -d)"
+ tmp_dir="$(mktemp -t "$template" -d)"
ramdisk_dev="$(hdid -drivekey system-image=yes -nomount 'ram://32768' | cut -d ' ' -f 1)" # 32768 sectors = 16 mb
[[ -z $ramdisk_dev ]] && exit 1
newfs_hfs -M 700 "$ramdisk_dev" &>/dev/null || exit 1