結果 : bash script + update global variable in function