diff options
| -rwxr-xr-x | sway-launcher-desktop.sh | 2 | ||||
| -rw-r--r-- | tests/describe.bats | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh index a631a47..5d06a4b 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -23,7 +23,7 @@ fi # Defaulting terminal to termite, but feel free to either change # this or override with an environment variable in your sway config # It would be good to move this to a config file eventually -set ${TERMINAL_COMMAND:="termite -e"} +set "${TERMINAL_COMMAND:="termite -e"}" HIST_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/${0##*/}-history.txt" diff --git a/tests/describe.bats b/tests/describe.bats index 3285163..7d2f866 100644 --- a/tests/describe.bats +++ b/tests/describe.bats @@ -5,9 +5,9 @@ [[ ${lines[1]} =~ "Browse the World Wide Web" ]] } -@test "Name and description of awk command should be given" { - run ../sway-launcher-desktop.sh describe awk command +@test "Name and description of ls command should be given" { + run ../sway-launcher-desktop.sh describe ls command [ "$status" -eq 0 ] - [[ ${lines[0]} =~ "awk" ]] - [[ ${lines[1]} =~ "pattern scanning and processing language" ]] + [[ ${lines[0]} =~ "ls" ]] + [[ ${lines[1]} =~ "list directory contents" ]] }
\ No newline at end of file |
