r3005 - in asterisk: tags/1.2.14~dfsg-2/debian trunk/debian

Lionel Elie Mamane lionel at mamane.lu
Sat Jan 13 14:11:29 CET 2007


On Sat, Jan 13, 2007 at 02:04:35PM +0100, Kilian Krause wrote:
> On Sat, Jan 13, 2007 at 01:39:29PM +0100, Lionel Elie Mamane wrote:
>> On Sat, Jan 13, 2007 at 12:29:33PM +0100, Kilian Krause wrote:

>>>  	echo "Updating private callerinfos location to /var/lib/asterisk/sounds/priv-callerintros."
>> (...)
>>> +	if [ `find /usr/share/asterisk/sounds/priv-callerintros -mindepth 1|wc -l` -gt 0 ];then
>>> +		mv /usr/share/asterisk/sounds/priv-callerintros/* /var/lib/asterisk/sounds/priv-callerintros
>>>  	fi

>> I'm not very fond of that line, as it will miss files whose name
>> starts with a dot; arguably, there isn't supposed to be any.

> kk at nyx:~$ touch x/.x
> kk at nyx:~$ find x -mindepth 1
> x/.x
> kk at nyx:~$

> I don't see how so.

I meant the "mv" command. The "*" expansion doesn't include files
whose name starts with a dot. Especially since we do "rmdir" after,
and that will fail on a non-empty directory.

-- 
Lionel




More information about the Pkg-voip-maintainers mailing list