[Pkg-voip-commits] r3009 - asterisk/trunk/debian

Kilian Krause kilian at alioth.debian.org
Sat Jan 13 14:20:22 CET 2007


Author: kilian
Date: 2007-01-13 14:20:22 +0100 (Sat, 13 Jan 2007)
New Revision: 3009

Modified:
   asterisk/trunk/debian/asterisk_fix
Log:
Enhance the move command to also catch dot-prefixed files. Thanks to Lionel!


Modified: asterisk/trunk/debian/asterisk_fix
===================================================================
--- asterisk/trunk/debian/asterisk_fix	2007-01-13 13:13:00 UTC (rev 3008)
+++ asterisk/trunk/debian/asterisk_fix	2007-01-13 13:20:22 UTC (rev 3009)
@@ -41,9 +41,7 @@
 		fi
 	else
 		echo -n "Updating private callerintros 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
+		find /usr/share/asterisk/sounds/priv-callerintros -mindepth 1 -maxdepth 1 -exec mv {} /var/lib/asterisk/sounds/priv-callerintros \;
 		rmdir /usr/share/asterisk/sounds/priv-callerintros
 		echo "."
 	fi




More information about the Pkg-voip-commits mailing list