mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -74,6 +74,9 @@ func confirm_and_run_shebang(args []string, confirm_policy ConfirmPolicy) (rc in
|
|||||||
// pager will still be visible.
|
// pager will still be visible.
|
||||||
fmt.Print("Execute the script? (y/n): ")
|
fmt.Print("Execute the script? (y/n): ")
|
||||||
q, err := tty.ReadSingleByteFromTerminal()
|
q, err := tty.ReadSingleByteFromTerminal()
|
||||||
|
if err != nil {
|
||||||
|
return 1, err
|
||||||
|
}
|
||||||
if q != 'y' && q != 'Y' {
|
if q != 'y' && q != 'Y' {
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
return 1, permission_denied(script_path)
|
return 1, permission_denied(script_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user