#!/bin/sh name="$1" #branch="${2:-sisyphus}" branch="sisyphus" #echo git ls-remote -h git://git.altlinux.org/gears/${name:0:1}/${name}.git refs/heads/$branch commit=`git ls-remote -h git://git.altlinux.org/gears/${name:0:1}/${name}.git refs/heads/$branch 2>/dev/null` RETVAL=$? if [ $RETVAL -eq 0 ] && [ -n "$commit" ]; then echo gear RETVAL=0 else echo srpm RETVAL=1 fi exit $RETVAL