Commit 83b500fb authored by Aral Balkan's avatar Aral Balkan
Browse files

You can now install the curson in the Xcode beta by passing the -b flag.

parent cccc3028
......@@ -23,10 +23,11 @@ set -e
cursorIsSet=false
revertingToOriginalCursor=false
destination="/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff"
printf "\n"
while getopts ":mlo" opt; do
while getopts ":mlob" opt; do
case $opt in
m)
printf "Installing medium (32×32 pixel) high-contrast I-beam cursor…" >&2
......@@ -44,6 +45,10 @@ while getopts ":mlo" opt; do
cursorIsSet=true
revertingToOriginalCursor=true
;;
b)
printf "Installing in Xcode Beta…"
destination="/Applications/Xcode-beta.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff"
;;
\?)
printf "Invalid option: -$OPTARG" >&2
;;
......@@ -58,7 +63,7 @@ fi
printf "\n\n"
# Copy the new cursor.
sudo cp $cursorToCopy /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff
sudo cp $cursorToCopy $destination
printf "Cursor installed.\n\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment