Skip to content

Commit

Permalink
make auto executable before calling
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Feb 4, 2021
1 parent 16019d9 commit fed8a9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/cli/scripts/inject-version.js
Expand Up @@ -8,12 +8,12 @@ const dotenv = require("dotenv");

dotenv.config({ path: path.join(__dirname, "../../../.env") });

const nextVersion = execSync(
`${path.join(__dirname, "../dist/bin/auto.js")} shipit -dq`,
{
encoding: "utf-8",
}
).trim();
const autoPath = path.join(__dirname, "../dist/bin/auto.js");

execSync(`chmod +x ${autoPath}`);
const nextVersion = execSync(`${autoPath} shipit -dq`, {
encoding: "utf-8",
}).trim();
const parseArgsPath = path.join(__dirname, "../dist/parse-args.js");
const parseArgsContent = fs.readFileSync(parseArgsPath, { encoding: "utf-8" });

Expand Down

0 comments on commit fed8a9b

Please sign in to comment.