diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-17 21:45:17 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-17 21:45:17 -0400 |
commit | 722e9d93945eac0053839e4f2c56ac3e3d186ee8 (patch) | |
tree | c172052737055e8bacd0cdd28f46b126c367c45c /src/lpm.lua | |
parent | 4b010fa276dad577094faaca41f4e2690eef8154 (diff) | |
download | lite-xl-plugin-manager-722e9d93945eac0053839e4f2c56ac3e3d186ee8.tar.gz lite-xl-plugin-manager-722e9d93945eac0053839e4f2c56ac3e3d186ee8.zip |
Ensured we close filehandles.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index e1c751a..23747a7 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -469,6 +469,7 @@ function common.copy(src, dst, hidden) dst_io:write(chunk) end dst_io:close() + src_io:close() system.chmod(dst, src_stat.mode) end end |