Created
April 30, 2020 21:07
-
-
Save chertov/9711113a81614c17af41f6a24cb08319 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
IMAGE_NAME=ng_build | |
rm -f ${IMAGE_NAME}.sparseimage | |
rm -rf ./${IMAGE_NAME} | |
mkdir -p ${IMAGE_NAME} | |
# hdiutil makehybrid -o ${IMAGE_NAME}.iso ${IMAGE_NAME} -iso -joliet | |
hdiutil create -size 10g -fs 'Case-sensitive Journaled HFS+' -volname ${IMAGE_NAME} ${IMAGE_NAME}.sparseimage | |
hdiutil attach -mountpoint ./${IMAGE_NAME} ${IMAGE_NAME}.sparseimage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment