chore: fix script to not break on windows (#581)
fix script to not break on windows
This commit is contained in:
@@ -46,17 +46,19 @@ console.log("Updating cinny web submodule");
|
||||
|
||||
execSync("git submodule update --init --recursive", { stdio: "inherit" });
|
||||
|
||||
execSync("cd cinny && git fetch --tags", { stdio: "inherit" });
|
||||
execSync("git fetch --tags", { cwd: "cinny", stdio: "inherit" });
|
||||
|
||||
const latestTag = execSync(
|
||||
"cd cinny && git describe --tags $(git rev-list --tags --max-count=1)"
|
||||
)
|
||||
.toString()
|
||||
.trim();
|
||||
const latestCommit = execSync("git rev-list --tags --max-count=1", {
|
||||
cwd: "cinny",
|
||||
}).toString().trim();
|
||||
|
||||
const latestTag = execSync(`git describe --tags ${latestCommit}`, {
|
||||
cwd: "cinny",
|
||||
}).toString().trim();
|
||||
|
||||
console.log(`Latest cinny tag: ${latestTag}`);
|
||||
|
||||
execSync(`cd cinny && git checkout ${latestTag}`, { stdio: "inherit" });
|
||||
execSync(`git checkout ${latestTag}`, { cwd: "cinny", stdio: "inherit" });
|
||||
|
||||
execSync("git add cinny", { stdio: "inherit" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user