change bash function return value to -1