From 32b31ee167e184b46bb64a60159ea8184958c013 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 16 Jun 2011 13:55:27 -0700 Subject: [PATCH] gen_reprepro: take multiple dists on cmdline --- gen_reprepro_conf.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gen_reprepro_conf.sh b/gen_reprepro_conf.sh index e1c5a7573..24363b67d 100755 --- a/gen_reprepro_conf.sh +++ b/gen_reprepro_conf.sh @@ -2,15 +2,13 @@ path="$1" comp="$2" +shift +shift if [ -e "$path/conf/dists" ]; then dists=`cat $path/conf/dists` else - if [ -e "$path/../../dists" ]; then - dists=`cat $path/../../dists` - else - dists="$3" - fi + dists="$*3" fi if [ -e "$path/conf/components" ]; then -- 2.47.3