mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
17 lines
317 B
TypeScript
17 lines
317 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google Inc.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import fs from 'node:fs';
|
|
|
|
/**
|
|
* Calls chmod with the mode in argv[2] on paths in argv[3...length-1].
|
|
*/
|
|
const mode = process.argv[2];
|
|
|
|
for (let i = 3; i < process.argv.length; i++) {
|
|
fs.chmodSync(process.argv[i], mode);
|
|
}
|