Shell script with error solved