We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1975266 commit 0faeacfCopy full SHA for 0faeacf
TmpDisk/Classes/TmpDiskManager.m
@@ -92,7 +92,7 @@ + (bool)createTmpDiskWithName:(NSString*)name size:(u_int64_t)size autoCreate:(b
92
93
NSString *command;
94
if (hidden) {
95
- NSString *pattern = @"d=$(hdiutil attach -nomount ram://%llu) && diskutil partitionDisk $d 1 GPT HFS+ %%noformat%% 100%% && "
+ NSString *pattern = @"d=$(hdiutil attach -nomount ram://%llu) && diskutil eraseDisk HFS+ %%noformat%% $d && "
96
@"newfs_hfs -v \"%@\" \"$(echo $d | tr -d ' ')s1\" && hdiutil attach -nomount $d && "
97
@"hdiutil attach -nobrowse \"$(echo $d | tr -d ' ')s1\"";
98
0 commit comments