mirror of
				https://gitea.com/actions/setup-java.git
				synced 2025-11-04 07:47:06 +00:00 
			
		
		
		
	Remote options from log
This commit is contained in:
		@@ -45,7 +45,7 @@ export function generate(id: string, username: string, password: string) {
 | 
				
			|||||||
async function write(directory: string, settings: string) {
 | 
					async function write(directory: string, settings: string) {
 | 
				
			||||||
  const options = {encoding: 'utf-8', flag: 'wx'}; // 'wx': Like 'w' but fails if path exists
 | 
					  const options = {encoding: 'utf-8', flag: 'wx'}; // 'wx': Like 'w' but fails if path exists
 | 
				
			||||||
  const location = path.join(directory, SETTINGS_FILE);
 | 
					  const location = path.join(directory, SETTINGS_FILE);
 | 
				
			||||||
  console.log(`writing ${location} with options ${options}`);
 | 
					  console.log(`writing ${location}`);
 | 
				
			||||||
  try {
 | 
					  try {
 | 
				
			||||||
    return fs.writeFileSync(location, settings, options);
 | 
					    return fs.writeFileSync(location, settings, options);
 | 
				
			||||||
  } catch (e) {
 | 
					  } catch (e) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user