Skip to content
Browse files

mystonline-cider: Use shellescape

  • Loading branch information
ryandesign committed Jun 27, 2020
1 parent 677ebe0 commit dd1bd8c0cb22fc38e29acabeb9b9f08a105cc2d7
Showing with 4 additions and 4 deletions.
  1. +4 −4 games/mystonline-cider/Portfile
@@ -8,7 +8,7 @@ version 2010
revision 4
platforms darwin
categories games x11
maintainers ryandesign
maintainers {ryandesign @ryandesign}
dist_subdir ${my_name}
@@ -146,15 +146,15 @@ proc my_attach_disk_image {disk_image} {
global workpath
set tmp_disk_image_dir [mkdtemp "${workpath}/.tmp/disk_image.XXXXXXXX"]
set tmp_disk_image ${tmp_disk_image_dir}/[file tail ${disk_image}].cdr
system "hdiutil convert -quiet -ov -format UDTO -o '${tmp_disk_image}' '${disk_image}'"
system "hdiutil convert -quiet -ov -format UDTO -o [shellescape ${tmp_disk_image}] [shellescape ${disk_image}]"
set mountpoint [mkdtemp "${workpath}/.tmp/mountpoint.XXXXXXXX"]
system "hdiutil attach -quiet '${tmp_disk_image}' -mountpoint '${mountpoint}' -private -nobrowse -noautoopen -noautofsck -noverify -readonly"
system "hdiutil attach -quiet [shellescape ${tmp_disk_image}] -mountpoint [shellescape ${mountpoint}] -private -nobrowse -noautoopen -noautofsck -noverify -readonly"
return ${mountpoint}

# Unmounts a disk image.
proc my_detach_disk_image {mountpoint} {
system "hdiutil detach '${mountpoint}' -force"
system "hdiutil detach [shellescape ${mountpoint}] -force"
file delete -force ${mountpoint}

0 comments on commit dd1bd8c

Please sign in to comment.
You can’t perform that action at this time.