diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-25 20:27:38 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-25 20:27:38 -0300 |
commit | eaae678c29cdabdef57916494b11159ca410869c (patch) | |
tree | 3db71cee309fc829fae6238e5ae20c74434a490d /create-repo | |
parent | c9a1740c91968bf1b5b829012e907a73ae628750 (diff) |
fix create-repo
Diffstat (limited to 'create-repo')
-rwxr-xr-x | create-repo | 8 |
1 files 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 |