diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-06-19 17:31:18 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-06-19 17:31:18 -0400 |
commit | 43a0e9a2d7f0f2cd18360be04f763f4a2b11ecbe (patch) | |
tree | b86ded81460a3a488b30290d5b56c4ac1f158f99 /src/lpm.c | |
parent | 8763e605d17f6d501af6b6e092ac28cb5d2dd4eb (diff) | |
download | lite-xl-plugin-manager-43a0e9a2d7f0f2cd18360be04f763f4a2b11ecbe.tar.gz lite-xl-plugin-manager-43a0e9a2d7f0f2cd18360be04f763f4a2b11ecbe.zip |
Clarified that `common.path` should only look for executbale files that are not folders.
Diffstat (limited to 'src/lpm.c')
-rw-r--r-- | src/lpm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1043,8 +1043,10 @@ static int lpm_flock(lua_State* L) { flock(fd, LOCK_UN); close(fd); #endif - if (err) - return lua_error(L); + if (err) { + lua_pushboolean(L, 1); + return 1; + } return 0; } |