Fix incorrect compgen usage

PR #4532 <https://github.com/Genymobile/scrcpy/pull/4532>

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Harsh Shandilya 2023-12-14 21:25:32 +05:30 committed by Romain Vimont
parent af69689ec1
commit 604dfd7c6b

View file

@ -116,11 +116,11 @@ _scrcpy() {
return
;;
--orientation|--display-orientation)
COMPREPLY=($(compgen -> '0 90 180 270 flip0 flip90 flip180 flip270' -- "$cur"))
COMPREPLY=($(compgen -W '0 90 180 270 flip0 flip90 flip180 flip270' -- "$cur"))
return
;;
--record-orientation)
COMPREPLY=($(compgen -> '0 90 180 270' -- "$cur"))
COMPREPLY=($(compgen -W '0 90 180 270' -- "$cur"))
return
;;
--lock-video-orientation)