arg[2] is a number in Lua scriptlets

This commit is contained in:
Miro Hrončok 2020-09-08 20:07:07 +02:00 committed by churchyard
parent 99cafb7674
commit 4ba13df021

View File

@ -252,7 +252,7 @@ end
%postun -p <lua> %postun -p <lua>
-- Run it only if we are uninstalling -- Run it only if we are uninstalling
if arg[2] == "0" if arg[2] == 0
then then
t={} t={}
for line in io.lines("/etc/shells") for line in io.lines("/etc/shells")