Forgot to use quotes to make yes a string instead of a variable.