Revision: 6584 http://ipcop.svn.sourceforge.net/ipcop/?rev=6584&view=rev Author: gespinasse Date: 2012-04-27 13:41:38 +0000 (Fri, 27 Apr 2012) Log Message: ----------- We shouldn't use at the same time for and ls as the shell know how to glob files. In that case, most of the time, there is no patch to copy, so replacing here with find suppress a 'No such file or directory'
Modified Paths: -------------- ipcop/trunk/lfs/update Modified: ipcop/trunk/lfs/update =================================================================== --- ipcop/trunk/lfs/update 2012-04-27 08:59:52 UTC (rev 6583) +++ ipcop/trunk/lfs/update 2012-04-27 13:41:38 UTC (rev 6584) @@ -78,9 +78,7 @@ # Add some additional files for the update cp $(IPCOP_UPDATE_DIR)/{setup,information.xml} /tmp echo "$(MACHINE)" >/tmp/ARCH - for i in `ls $(IPCOP_UPDATE_DIR)/*.patch` ; do \ - cp $(IPCOP_UPDATE_DIR)/$$i /tmp; \ - done + find $(IPCOP_UPDATE_DIR) -name '*.patch' -type f -exec cp -v {} /tmp \; # Make sure setup is executable chmod 755 /tmp/setup This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn