diff options
| author | Bobby <[email protected]> | 2022-07-18 00:57:36 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-07-18 00:57:36 +0530 |
| commit | b31bd3dbabb57eda3fddfaa7a59e01e73442834f (patch) | |
| tree | 8acf4f7eec348c9d9e143933ff2ad59784233f2e /hooks/pre-commit.js | |
| parent | 406a35de9d0d37d20123a0a3e961614142c2cf3c (diff) | |
| download | thatcomputerscientist-b31bd3dbabb57eda3fddfaa7a59e01e73442834f.tar.xz thatcomputerscientist-b31bd3dbabb57eda3fddfaa7a59e01e73442834f.zip | |
Change Init to Ghost
Diffstat (limited to 'hooks/pre-commit.js')
| -rw-r--r-- | hooks/pre-commit.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/hooks/pre-commit.js b/hooks/pre-commit.js deleted file mode 100644 index d917d59a..00000000 --- a/hooks/pre-commit.js +++ /dev/null @@ -1,18 +0,0 @@ -const fs = require("fs"); -const shell = require("shelljs"); - -// Open the readme file -const readme = fs.readFileSync("README.md", "utf8"); - -// Find the line which starts with "![Screenshot]" -const screenshotLine = readme.split("\n").find(line => line.startsWith("![Screenshot]")); - -// Replace the line with the new screenshot -const newScreenshotLine = `})`; -const newReadme = readme.replace(screenshotLine, newScreenshotLine); - -// Write the new readme file -fs.writeFileSync("README.md", newReadme); - -// Add the readme file to the git commit -shell.exec("git add README.md"); |
