test: plugin: xterm: Use correct _command_exists invocation

pull/1776/head
Noah Gorny 2021-01-23 23:03:32 +02:00
parent 046e528cc2
commit 6b3788051f
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bats #!/usr/bin/env bats
load ../test_helper load ../test_helper
load ../../lib/helpers
load ../../lib/composure load ../../lib/composure
load ../../plugins/available/xterm.plugin load ../../plugins/available/xterm.plugin
@ -9,8 +10,7 @@ function local_setup {
setup_test_fixture setup_test_fixture
# Copy the test fixture to the Bash-it folder # Copy the test fixture to the Bash-it folder
if command_exists -v rsync if _command_exists rsync; then
then
rsync -a "$BASH_IT/test/fixtures/plugin/xterm/" "$BASH_IT/" rsync -a "$BASH_IT/test/fixtures/plugin/xterm/" "$BASH_IT/"
else else
find "$BASH_IT/test/fixtures/plugin/xterm" \ find "$BASH_IT/test/fixtures/plugin/xterm" \