diff options
Diffstat (limited to 'mkrepo')
-rwxr-xr-x | mkrepo | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -4,21 +4,12 @@ # Description: A script to quickly create new [repos] source "$(dirname "$(readlink -e "$0")")/config" -source "$(dirname "$(readlink -e "$0")")/local_config" - -# TODO it would be simpler to expand arrays to {element1,element2,etc} -for repo in $@; do +for repo in "$@"; do echo ":: Creating [$repo]" - mkdir -pv ${repodir}/{staging/,}${repo} - - for arch in ${ARCHES[@]}; do - mkdir -pv ${repodir}/${repo}/os/${arch} + for arch in "${ARCHES[@]}"; do + mkdir -pv "${FTP_BASE}/${repo}/os/${arch}" done - done -echo ":: All done. Add the repo to the parabolaweb admin page" -echo " and the get_repos script on the same server." - -exit $? +echo ":: All done. Add the repo to the ParabolaWeb admin page." |