Skip to content

Commit

Permalink
Remove --skip-version-validation option before passing the args on (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach authored Apr 8, 2022
1 parent bade0c3 commit 1b829e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ let args = process.argv.slice(2)

let skip_validation = '--skip-version-validation'
async function init () {
if(!args.includes(skip_validation)) {
let skipValidationIndex = args.indexOf(skip_validation)
if (skip_validation === -1) {
cmd.section('Version Validation')
console.log("Use the `" + skip_validation + "` flag to skip it.")
console.log("Querying npm for the latest LTS versions.")
Expand All @@ -24,6 +25,8 @@ async function init () {
await cmd.check_version('rustc','1.61.0-nightly',{
preprocess:(v)=>v.substring(6,20)
})
} else {
args.splice(skipValidationIndex, 1)
}

let initialized = fss.existsSync(paths.dist.buildInit)
Expand Down

0 comments on commit 1b829e0

Please sign in to comment.