aboutsummaryrefslogtreecommitdiff
path: root/hooks/clone.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-03-27 17:56:40 +0200
committerMinteck <contact@minteck.org>2022-03-27 17:56:40 +0200
commit44b4222bc02f102480d1afe05d940612ff6cb983 (patch)
tree936e6baf8039e065324cd1c2e453c33ec4cf4122 /hooks/clone.js
parent1d8cbd4b6a7b654c77d8cd3793bc67811a39725d (diff)
downloadtwilight-44b4222bc02f102480d1afe05d940612ff6cb983.tar.gz
twilight-44b4222bc02f102480d1afe05d940612ff6cb983.tar.bz2
twilight-44b4222bc02f102480d1afe05d940612ff6cb983.zip
WIP Alicorn port (abandonned, To be removed)
Diffstat (limited to 'hooks/clone.js')
-rw-r--r--hooks/clone.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/clone.js b/hooks/clone.js
index 315a6e5..239d09a 100644
--- a/hooks/clone.js
+++ b/hooks/clone.js
@@ -26,7 +26,7 @@
module.exports = (repo, branch, callback) => {
const spinner = ora("Downloading package...").start();
- if (os.platform() === "win32") {
+ if (twiplatform === "win32") {
git = require('child_process').execSync("where git").toString().trim();
} else {
git = require('child_process').execSync("which git").toString().trim();