From c02c756baf0aec33a9b7ad009fd9bb0463be5001 Mon Sep 17 00:00:00 2001 From: Raphael Reitzig <4246780+reitzig@users.noreply.github.com> Date: Wed, 31 Jul 2019 02:18:08 +0200 Subject: [PATCH] issue #27 Fish 3 compatibility: replace `math` with `test` in conditions cf. https://github.com/fish-shell/fish-shell/issues/4777 --- test/wrapper.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/wrapper.fish b/test/wrapper.fish index bd95ac0..67568c2 100644 --- a/test/wrapper.fish +++ b/test/wrapper.fish @@ -23,12 +23,12 @@ echo "Testing the sdk wrapper" set failures 0 for sdk_cmd in $test_commands echo " Testing '$sdk_cmd'" - bash -c "source \"$sdk_init\" && $sdk_cmd > sout_bash; - echo \"\$?\" > status_bash; + bash -c "source \"$sdk_init\" && $sdk_cmd > sout_bash; + echo \"\$?\" > status_bash; echo \"\$PATH\" > path_bash; echo \"\$ANT_HOME\" > anthome_bash" - fish -c "$sdk_cmd > sout_fish; - echo \"\$status\" > status_fish; + fish -c "$sdk_cmd > sout_fish; + echo \"\$status\" > status_fish; echo \"\$PATH\" > path_fish; echo \"\$ANT_HOME\" > anthome_fish" @@ -52,4 +52,4 @@ rm {sout,status,path}_{bash,fish} echo "Ran $test_count commands with 3 checks each." echo "$failures/$check_count checks failed." -exit (math $failures != 0) \ No newline at end of file +exit (test $failures != 0)