diff --git a/scripts/copy_output.lua b/scripts/copy_output.lua index 1af2f8f7bb..0557da7d64 100755 --- a/scripts/copy_output.lua +++ b/scripts/copy_output.lua @@ -92,5 +92,6 @@ if (env.GLUON_DEVICES or '') == '' then lib.exec {'rm', '-f', dest_dir('\0')..'/\0'} lib.exec({'rmdir', '-p', dest_dir('\0')}, true, '2>/dev/null') mkdir(dest_dir(package_prefix)) + lib.exec {'rm', '-rf', 'openwrt/bin/targets/'..bindir..'/packages/tmp\0'} lib.exec {'cp', 'openwrt/bin/targets/'..bindir..'/packages/\0', dest_dir(package_prefix)} end