abf-console-client-src/abfcd.sh

15 lines
236 B
Bash
Raw Normal View History

2012-10-25 15:26:22 +04:00
abfcd()
{
if [ $2 ] || [ -z $1 ] ; then
echo "Syntax: abfcd [group/]project"
return 1
fi
output=`abf locate -p $1`
if [[ $output == error* ]] || [[ -z $output ]] ; then
echo $output;
return;
fi
cd $output
}