mirror of
https://github.com/Ascyii/gpg.yazi.git
synced 2026-01-01 10:54:24 -05:00
Tostring
This commit is contained in:
4
main.lua
4
main.lua
@@ -20,9 +20,9 @@ return {
|
|||||||
return info("No file selected")
|
return info("No file selected")
|
||||||
end
|
end
|
||||||
|
|
||||||
info(hovered)
|
info(tostring(hovered))
|
||||||
|
|
||||||
local output, err = Command("gpg"):arg("--yes"):arg("--recipient"):arg("jonashahn1@gmx.net"):arg("--output"):arg(hovered .. ".gpg"):arg("--encrypt"):arg(hovered):output()
|
local output, err = Command("gpg"):arg("--yes"):arg("--recipient"):arg("jonashahn1@gmx.net"):arg("--output"):arg(tostring(hovered) .. ".gpg"):arg("--encrypt"):arg(tostring(hovered)):output()
|
||||||
if not output then
|
if not output then
|
||||||
return info("Failed to gpg diff, error: " .. err)
|
return info("Failed to gpg diff, error: " .. err)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user