]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
reprepro fixup 2
authorSage Weil <sage@newdream.net>
Sun, 20 Feb 2011 04:43:27 +0000 (20:43 -0800)
committerSage Weil <sage@newdream.net>
Sun, 20 Feb 2011 04:43:27 +0000 (20:43 -0800)
gen_reprepro_conf.sh

index 8b03739186b485525a08ad76a7902db6cac12d3b..2d375c6955c7090987bd1f8aa0d5e8caf98f8d51 100755 (executable)
@@ -5,10 +5,12 @@ comp="$2"
 
 if [ -e "$path/conf/dists" ]; then
     dists=`cat $path/conf/dists`
-else if [ -e "$path/../dists" ]; then
-    dists=`cat $path/../dists`
 else
-    dists="$3"
+    if [ -e "$path/../dists" ]; then
+       dists=`cat $path/../dists`
+    else
+       dists="$3"
+    fi
 fi
 
 if [ -e "$path/conf/components" ]; then