diff --git a/deploy.sh b/deploy.sh index 9bd7500..3468277 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,12 @@ #/bin/sh -cp BlueForest.xml ~/Library/Preferences/IntelliJIdea10/colors/ +for version in "11" "10" +do + dir="`echo ~/Library/Preferences/IntelliJIdea$version/colors`" + if [ -e "$dir" ] + then + cp BlueForest.xml $dir + break + fi + echo "IntelliJ directory was not found" +done diff --git a/update.sh b/update.sh index d964ede..8eef850 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,11 @@ #/bin/sh -cp ~/Library/Preferences/IntelliJIdea10/colors/BlueForest.xml . +for version in "11" "10" +do + dir="`echo ~/Library/Preferences/IntelliJIdea$version/colors`" + if [ -e "$dir" ] + then + cp $dir/BlueForest.xml . + break + fi +done