Fixed os_copyfile() for Posix
This commit is contained in:
parent
29f6048b6c
commit
f8ca7b42f6
File diff suppressed because one or more lines are too long
@ -4,9 +4,9 @@
|
||||
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "premake.h"
|
||||
|
||||
|
||||
int os_copyfile(lua_State* L)
|
||||
{
|
||||
int z;
|
||||
@ -16,7 +16,7 @@ int os_copyfile(lua_State* L)
|
||||
#if PLATFORM_WINDOWS
|
||||
z = CopyFile(src, dst, FALSE);
|
||||
#else
|
||||
luaL_pushfstring(L, "cp %s %s", src, dst);
|
||||
lua_pushfstring(L, "cp %s %s", src, dst);
|
||||
z = (system(lua_tostring(L, -1)) == 0);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user