Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
fix Incomplete string escaping or encoding issue #182
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Mar 14, 2022
1 parent c53cc8f commit d3aba5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/scoop/scoop-sm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const { promisify } = require("util");
const { pipeline } = require("stream");

const VERSION_CMD = sh.exec("git describe --abbrev=0 --tags");
const VERSION = VERSION_CMD.replace("\n", "")
.replace("\r", "")
.replace("v", "");
const VERSION = VERSION_CMD.replace(/\\n/g, "").replace("v", "");

const SECMAN_32BIT_URL = `https://github.com/scmn-dev/secman/releases/download/v${VERSION}/secman_windows_v${VERSION}_386.zip`;
const SECMAN_64BIT_URL = `https://github.com/scmn-dev/secman/releases/download/v${VERSION}/secman_windows_v${VERSION}_amd64.zip`;
Expand Down

0 comments on commit d3aba5a

Please sign in to comment.