mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
rules(pr_general): automatically chmod +x when running local executable (github #42)
Co-authored-by: xosc <urlocaldumbass@proton.me>
This commit is contained in:
parent
d74cbef2ed
commit
13e8b4a7c2
1 changed files with 12 additions and 0 deletions
|
|
@ -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}}'''
|
||||||
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue