.lua-files/test.lua

18 lines
633 B
Lua
Raw Normal View History

2024-01-14 00:17:31 +00:00
#!/usr/bin/env luajit
-- if utility-functions.lua has an error, this won't show it, so for testing purposes, I don't use it here
-- local error_occurred, utility = pcall(function() return require("utility-functions") end) if not error_occurred then error("This script is installed improperly. Follow instructions at https://github.com/TangentFoxy/.lua-files#installation") end
utility = require("utility-functions")
print("---")
-- utility.ls()(function(file_name)
2024-01-14 00:17:31 +00:00
-- print(file_name)
-- end)
-- verifying that popen fallback works correctly, with a well-formatted warning
io.popen = nil
os.capture("echo hello")
2024-01-14 00:17:31 +00:00
print("---")