public String getScriptUpdateCommand(String scriptFile) {
	    if (StringUtils.isBlank(scriptFile)) {
	        return scriptFile;
	    }
	    
	    StringBuilder scriptUpdateCmd = new StringBuilder();
	    scriptUpdateCmd.append(DockerfileGenConstants.WINDOWS_NEW_LINE_CHANGE_COMMAND)
	        .append(ToolConstants.SPACE).append(scriptFile);
	    
	    return scriptUpdateCmd.toString();
	}
Update script command to remove windows carriage return in scripts
sed -i 's/\r$//' #scriptfile
@param scriptFile
@return script update command
dockerfile-generator/dockerfile-gen-services/src/main/java/io/hyscale/dockerfile/gen/services/manager/impl/DockerScriptManagerImpl.java