mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-24 06:24:19 +02:00
Fix arguments test
This commit is contained in:
parent
4c0f4f7d7a
commit
8f13be1f7c
1 changed files with 3 additions and 3 deletions
|
|
@ -14,9 +14,9 @@ readonly helptext="Usage: ./cagebreak [OPTIONS]
|
|||
-s Show information about the current setup and exit
|
||||
-v Show the version number and exit"
|
||||
|
||||
readonly basicheadless="Cagebreak $1 is running on Wayland display wayland-1
|
||||
readonly basicheadless="Cagebreak ${1} is running on Wayland display wayland-.
|
||||
Outputs:
|
||||
* HEADLESS-1
|
||||
\\* HEADLESS-1
|
||||
Inputs:"
|
||||
|
||||
RESULT=0
|
||||
|
|
@ -51,7 +51,7 @@ sync
|
|||
[[ $(./cagebreak -h) = "$helptext" ]] || RESULT=1
|
||||
|
||||
# check -s option
|
||||
[[ $(WLR_BACKENDS=headless ./cagebreak -s) = "$basicheadless" ]] || RESULT=1
|
||||
[[ $(WLR_BACKENDS=headless ./cagebreak -s) =~ ${basicheadless} ]] || RESULT=1
|
||||
|
||||
|
||||
# check -v option
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue