mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-04 05:32:40 +02:00
Handle -- as flag terminator in sudo wrapper
This commit is contained in:
@@ -26,6 +26,7 @@ if [[ -n "$KITTY_BASH_INJECT" ]]; then
|
||||
is_sudoedit="y"
|
||||
builtin break;
|
||||
fi
|
||||
[[ "$arg" == "--" ]] && builtin break # end of options
|
||||
[[ "$arg" != -* && "$arg" != *=* ]] && builtin break # command found
|
||||
done
|
||||
if [[ "$is_sudoedit" == "y" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user