Update netmount.lua

This commit is contained in:
CadenCoaster
2025-10-23 21:31:07 -07:00
committed by GitHub
parent 9475f2d98d
commit 0d4a3461a2

View File

@@ -33,6 +33,7 @@ while true do
sleep() sleep()
end end
local _, nm = assert(pcall(assert(load(handle.readAll(), "nmapi", nil, _ENV))))
handle.close() handle.close()
local state = assert(nm.createState(args.url, args.username, args.password)) local state = assert(nm.createState(args.url, args.username, args.password))
@@ -200,4 +201,4 @@ end
state.close() state.close()
print("Press any key to continue") print("Press any key to continue")
os.pullEvent("key") os.pullEvent("key")
_G.fs = ofs _G.fs = ofs