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