mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
issue #27 Fish 3 compatibility: replace math
with test
in conditions
cf. https://github.com/fish-shell/fish-shell/issues/4777
This commit is contained in:
parent
3055e88e1f
commit
c02c756baf
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
exit (test $failures != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue