結果 : bash script wait until command finishes