Update bash function