rules(pr_general): automatically chmod +x when running local executable (github #42)

Co-authored-by: xosc <urlocaldumbass@proton.me>
This commit is contained in:
x-osc 2025-03-28 14:19:57 +00:00 committed by iff
parent d74cbef2ed
commit 13e8b4a7c2

View file

@ -11,3 +11,15 @@ suggest = [
''' '''
{{select[0](path)}} {{command[1:]}} ''' {{select[0](path)}} {{command[1:]}} '''
] ]
[[match_err]]
pattern = [
"permission denied",
"is not an executable file"
]
suggest = [
'''
#[cmd_contains(./)]
chmod +x {{command[0]}} &&
{{command}}'''
]