mirror of
https://abf.rosa.ru/djam/abf-console-client-src.git
synced 2025-02-23 18:02:50 +00:00
14 lines
236 B
Bash
14 lines
236 B
Bash
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
|
|
}
|