Permalink
Browse files

[build-xbmc-addons.sh] don't use meta repo if we want to build from a…

… non-default

github repo
  • Loading branch information...
1 parent 88aefed commit 0c4092f7d3b9b505611fbef067a1c9d63cf019e9 @wsnipex wsnipex committed Aug 27, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 build-xbmc-addons.sh
View
@@ -31,7 +31,8 @@ CREATE_ZIP=${CREATE_ZIP:-"False"}
CREATE_TGZ=${CREATE_TGZ:-"False"}
ZIP_OUTPUT_DIR=${ZIP_OUTPUT_DIR:-$WORK_DIR}
CLEANUP_AFTER=${CLEANUP_AFTER:-"False"}
-GITHUB_USER=${GITHUB_USER:-"cptspiff"}
+DEFAULT_GITHUB_USER="cptspiff"
+GITHUB_USER=${GITHUB_USER:-$DEFAULT_GITHUB_USER}
META_REPO=${META_REPO:-"https://github.com/cptspiff/xbmc-visualizations"}
ADDON_FILTER=${ADDON_FILTER:-"visualization.milkdrop gameclient.snes9x"}
@@ -125,6 +126,7 @@ function checkEnv {
}
function getAllAddons {
+ # This is only run if DEFAULT_GITHUB_USER is used
local name
local url
@@ -279,7 +281,7 @@ then
fi
checkEnv
-getAllAddons
+[[ "$GITHUB_USER" == "$DEFAULT_GITHUB_USER" ]] && getAllAddons
prepareBuild
[[ "$CLEANUP_AFTER" == "True" ]] && [[ $UPLOAD_DONE -eq 0 ]] && cleanup

0 comments on commit 0c4092f

Please sign in to comment.