Skip to content

Commit

Permalink
Osx sierra fix (#45)
Browse files Browse the repository at this point in the history
* - change mount point to user home so the script will work for OSX-Sierra - apples' new permissions
* - remove redundant path
* - prompt fix
  • Loading branch information
zafarella authored Jan 9, 2017
1 parent 94c9add commit 7c200aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Contents/MacOS/startupRAMDiskandCacheMover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
ramfs_size_mb=$(sysctl hw.memsize | awk '{print $2;}')
ramfs_size_mb=$((${ramfs_size_mb} / 1024 / 1024 / 4))

mount_point=/Volumes/ramdisk
mount_point=/Users/${USER}/ramdisk
ramfs_size_sectors=$((${ramfs_size_mb}*1024*1024/512))
ramdisk_device=`hdid -nomount ram://${ramfs_size_sectors}`
USERRAMDISK="$mount_point/${USER}"
USERRAMDISK="$mount_point"

MSG_MOVE_CACHE=". Do you want me to move its cache?"
MSG_PROMPT_FOUND="I found "
Expand Down Expand Up @@ -63,7 +63,7 @@ close_app()
#
mk_ram_disk()
{
# unmount if exists the RAM disk and mounts if doesn't
# unmount if exists and mounts if doesn't
umount -f ${mount_point}
newfs_hfs -v 'ramdisk' ${ramdisk_device}
mkdir -p ${mount_point}
Expand Down Expand Up @@ -377,7 +377,7 @@ main() {
move_clion_cache
move_appcode_cache
move_xcode_cache
echo "echo use \"/Volumes/ramdisk/${USER}/compileroutput\" for intelliJ project output directory."
echo "echo use \"${mount_point}/compileroutput\" for intelliJ project output directory."
echo "All good - I have done my job. Your apps should fly."
}

Expand Down

0 comments on commit 7c200aa

Please sign in to comment.