Skip to content

Commit e29b766

Browse files
committed
Guard INFLATE.LUA from direct execution.
1 parent 2dd4a62 commit e29b766

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/INFLATE.LUA

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
if not LIB then print("Please run unzip instead") os.exit(1) end
2+
13
---Inflate (a.k.a decompress) a deflated file inside a zip
24
---@param r function The reader function
35
---@param w function The writer function

arch/UNZIP.LUA

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env lua
22

33
package.path = package.path .. ";?.LUA" --In case of a case sensitive operating system
4+
LIB=1
45

56
---Halt and catch fire if E is set
67
function D() if E then error(E, 0) end end

0 commit comments

Comments
 (0)