Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Check for Limechat Theme path #3

Merged
merged 1 commit into from

3 participants

@infynyxx

Fix for: If Limechat is not installed from AppStore, theme directory is set as
~/Library/Application\ Support/LimeChat/Themes/ failing installation.

Minor update: If git pull returns non zero exit code, fail gracefully.

@infynyxx infynyxx Check for Limechat Theme path
If Limechat is not installed from AppStore, theme directory is set as
~/Library/Application\ Support/LimeChat/Themes/

And if git pull returns with non zero exit code, fail gracefully
fd47086
@paulirish

Nice. thanks

@wookiehangover wookiehangover merged commit 5fe3d64 into wookiehangover:master
@infynyxx

Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 7, 2012
  1. @infynyxx

    Check for Limechat Theme path

    infynyxx authored
    If Limechat is not installed from AppStore, theme directory is set as
    ~/Library/Application\ Support/LimeChat/Themes/
    
    And if git pull returns with non zero exit code, fail gracefully
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 1 deletion.
  1. +13 −1 bootstrap.sh
View
14 bootstrap.sh
@@ -4,10 +4,22 @@ cd "$(dirname "$0")"
echo "Updating Repo..."
git pull
+git_pull_exit_status=$?
+if [ $git_pull_exit_status -ne 0 ]
+then
+ echo "git pull Failed"
+ exit $git_pull_exit_status
+fi
function doIt() {
echo "Copying theme files..."
- rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "readme.md" -av . ~/Library/Application\ Support/net.limechat.LimeChat-AppStore/Themes
+ limechat_theme_directory="${HOME}/Library/Application Support/net.limechat.LimeChat-AppStore/Themes"
+ if [ ! -d "$limechat_theme_directory" ]
+ then
+ # if not installed from AppStore
+ limechat_theme_directory="${HOME}/Library/Application Support/LimeChat/Themes"
+ fi
+ rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "readme.md" -av . "$limechat_theme_directory"
echo "Wookielight theme successfully installed!"
}
Something went wrong with that request. Please try again.