build: fixed copy_script typo
[nivanova/samba-autobuild/.git] / buildtools / wafsamba / wafsamba.py
index cb7e1a55cea222963d7a3bf2c5a9075f74b676d4..098053d5739fcf72941ced3aadb5cd90abb152fa 100644 (file)
@@ -577,7 +577,7 @@ def symlink_bin(self):
 
 
 
-t = Task.simple_task_type('copy_script', 'rm -f && ln -s ${SRC[0].abspath(env)} ${LINK_TARGET}',
+t = Task.simple_task_type('copy_script', 'rm -f ${LINK_TARGET} && ln -s ${SRC[0].abspath(env)} ${LINK_TARGET}',
                           shell=True, color='PINK', ext_in='.bin')
 t.quiet = True