bash script only run once