tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

chmod.ts (317B)


      1 /**
      2 * @license
      3 * Copyright 2023 Google Inc.
      4 * SPDX-License-Identifier: Apache-2.0
      5 */
      6 
      7 import fs from 'node:fs';
      8 
      9 /**
     10 * Calls chmod with the mode in argv[2] on paths in argv[3...length-1].
     11 */
     12 const mode = process.argv[2];
     13 
     14 for (let i = 3; i < process.argv.length; i++) {
     15  fs.chmodSync(process.argv[i], mode);
     16 }