結果 : bash run function in if statement