Bugfixing.

This commit is contained in:
Alwex 2012-09-20 10:09:46 +00:00 committed by default
parent 6b1dfc28db
commit ec77c84e4e

View File

@ -25,7 +25,7 @@ then
[ -d $MIRROR_DIR_GEMS ] || mkdir -p $MIRROR_DIR_GEMS [ -d $MIRROR_DIR_GEMS ] || mkdir -p $MIRROR_DIR_GEMS
awk -v mirror=$MIRROR_DIR_GEMS '{system ("[ `find " mirror " -name " $1 "-" $2 "*` ] || ( cd "mirror" && gem fetch "$1" -v "$2")")}' ./requirements-gems.txt awk -v mirror=$MIRROR_DIR_GEMS '{system ("[ `find " mirror " -name " $1 "-" $2 "*` ] || ( cd "mirror" && gem fetch "$1" -v "$2")")}' ./requirements-gems.txt
ln -s ${BASH_REMATCH[1]} ./mirror [ -h $LOCAL_MIRROR ] || ln -s ${BASH_REMATCH[1]} $LOCAL_MIRROR
echo "Local golden mirror is updated from the internet." echo "Local golden mirror is updated from the internet."
echo "Symlink to ${BASH_REMATCH[1]} created at the build dir" echo "Symlink to ${BASH_REMATCH[1]} created at the build dir"