-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing postinstall script to LIGO library package
- Loading branch information
Michael Weichert
committed
Oct 5, 2023
1 parent
ef16374
commit be20f9d
Showing
26 changed files
with
117 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
console.log('LIGO collects anonymous usage data by default. If you prefer not to participate, you may opt out by executing the command: `taq ligo -c "analytics deny"`. For more information, please contact the LIGO team on the Tezos Discord server: https://discord.gg/tezos'); | ||
|
||
const directoryPath = path.join(process.cwd(), '.ligo'); | ||
const filePath = path.join(directoryPath, 'term_acceptance'); | ||
|
||
// Check if the .ligo directory exists | ||
if (!fs.existsSync(directoryPath)) { | ||
// If not, create it | ||
fs.mkdirSync(directoryPath); | ||
} | ||
|
||
// Check if the term-acceptance file exists within .ligo | ||
if (!fs.existsSync(filePath)) { | ||
// If not, create and write 'accepted' to it | ||
fs.writeFileSync(filePath, 'accepted'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.