Permalink
Browse files

Working on intellij setup script

  • Loading branch information...
1 parent adbe09c commit 21d83fe926251b7c98d05209b775ae26bb27a104 @btilford committed Jul 16, 2011
Showing with 1 addition and 8 deletions.
  1. +1 −8 intellij.sh
View
@@ -19,14 +19,7 @@ wget "$url"
mkdir ~/apps/idea/tmp
tar xzf "$dl" -C ~/apps/idea/tmp
rm "$dl"
-for f in "~/apps/idea/tmp"
-do
- case $f in
- idea-IU-[0-9]+\.[0-2])
- mv $f "~/apps/idea/idea-$version"
- ;;
- esac
-done
+ls ~/apps/idea/tmp | sed 's/idea-IU-\([0-9]\{,3\}\.[0-9]\{,3\}\)/mv "&" "~/apps/idea/idea-$version"/' | sh
rm -Rf ~/apps/idea/tmp
ln -s "~/apps/idea/idea-$version" /apps/idea/latest

0 comments on commit 21d83fe

Please sign in to comment.