]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
gen_reprepro_conf.sh: Set bindir variable.
authorGary Lowell <glowell@inktank.com>
Fri, 19 Oct 2012 16:41:33 +0000 (09:41 -0700)
committerGary Lowell <glowell@inktank.com>
Fri, 19 Oct 2012 16:41:33 +0000 (09:41 -0700)
Need bindir to be set in order to find deb_dists when it's not in the
current directory.

gen_reprepro_conf.sh

index 41cb17720a2db6b7aefdf03b9d5e35ac4d999567..f5ae0edba563f5eccfcab58ebc508eaedf98bd97 100755 (executable)
@@ -2,9 +2,10 @@
 
 set -e
 
+bindir=`dirname $0`
 path="$1"
 
-if [ ! -d $path ] ; then
+if [ ! -d $path -o ! -d $path/conf ] ; then
     mkdir -p $path/conf
 fi