From eaae678c29cdabdef57916494b11159ca410869c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Tue, 25 Aug 2015 20:27:38 -0300 Subject: fix create-repo --- create-repo | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/create-repo b/create-repo index e390974..ae49ffa 100755 --- a/create-repo +++ b/create-repo @@ -16,11 +16,11 @@ fi for 'platform' in "${PLATFORMS[@]}"; do case $1 in --platform|-platform|platform|-p) - source "$(dirname "$(readlink -e "$0")")/config_${2}" - _repos=($@) && unset _repos[0] _repos[1] if [ "$2" == "${platform}" ]; then + source "$(dirname "$(readlink -e "$0")")/config_${2}" + msg "Creating repos... from $2 platform" for '_repo' in "${_repos[@]}"; do msg2 "Creating [%s]" "${_repo_all}" @@ -29,10 +29,11 @@ for 'platform' in "${PLATFORMS[@]}"; do error "Failed creating %s dir" "${_arch}" "from $2 platform" done done + + msg "Don't forget to add them to the PKG_REPOS array on %s" "$(dirname "$(readlink -e "$0")")/config_${2}" else create-repo-usage fi - msg "Don't forget to add them to the PKG_REPOS array on %s" "$(dirname "$(readlink -e "$0")")/config_${2}" ;; *) source "$(dirname "$(readlink -e "$0")")/config_${platform}" @@ -45,6 +46,7 @@ for 'platform' in "${PLATFORMS[@]}"; do error "Failed creating %s dir" "${_arch}" "in all platforms" done done + msg "Don't forget to add them to the PKG_REPOS array on %s" "$(dirname "$(readlink -e "$0")")/config_${platform}" ;; esac -- cgit v1.2.3