Skip to content

Commit

Permalink
update script: Don't skip symlinks in bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Jul 17, 2020
1 parent 1e011a2 commit 4d114fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion update
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ dirs.forEach(function (dir) {

// ascending list (oldest version first)
const parsedList = files
.filter(function (file) { return dir === '/wasm' || !file.isSymbolicLink() })
.filter(function (file) {
// Skip symbolic links with less then 8 characters in the commit hash.
// They exist only for backwards-compatibilty and should not be on the list.
return dir !== '/bin' ||
!file.isSymbolicLink() ||
file.name.match(/^.+\+commit\.[0-9a-f]{8,}\.js$/)
})
.map(function (file) { return file.name })
.map(function (file) { return file.match(/^soljson-v([0-9.]*)(-([^+]*))?(\+(.*))?.js$/) })
.filter(function (version) { return version })
Expand Down

0 comments on commit 4d114fd

Please sign in to comment.