Skip to content

Commit

Permalink
Merge pull request sirthias#15 from AndreasArledal/feature/intellijVe…
Browse files Browse the repository at this point in the history
…rsions

Added basic IntelliJ version checking for deploy and update scripts.
  • Loading branch information
sirthias committed Dec 29, 2011
2 parents 3b324a6 + 854aaff commit 6fdbcdf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 10 additions & 1 deletion 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

10 changes: 9 additions & 1 deletion 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

0 comments on commit 6fdbcdf

Please sign in to comment.