script needs to run as bash for string comparison