- arg[2] is integer not string (!?) in lua
Changed files:
rpm.macros -> 1.429
end\
for _, s in ipairs({%{expand:%%__lua_split %*}}) do\
if not t[s] then\
+ print("Adding "..s.." to /etc/shells")\
f = io.open("/etc/shells", "a"); f:write(s.."\\n"); f:close()\
end\
end\
%{nil}
%remove_etc_shells(p) %{-p:<lua>}\
-%{-p:if arg[2] == "0" then}\
+%{-p:if arg[2] == 0 then}\
t = {}\
f = io.open("/etc/shells", "r")\
if f then\
f:close()\
end\
for _, l in pairs({%{expand:%%__lua_split %*}}) do\
+ print("Removing "..l.." from /etc/shells")\
t[l] = nil\
end\
s=""\