Update up bash function