Skip to content

Display and control your Android device

Fix incorrect compgen usage

Harsh Shandilya604dfd7c6b07
diff --git a/app/data/bash-completion/scrcpy b/app/data/bash-completion/scrcpy
index a0490157..78aa539d 100644
--- a/app/data/bash-completion/scrcpy
+++ b/app/data/bash-completion/scrcpy
@@ -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)