We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e9562a + ce6c989 commit 1fbfd31Copy full SHA for 1fbfd31
downloadCurrentVersion.js
@@ -28,6 +28,17 @@ function getVersionList (cb) {
28
function downloadBinary (outputName, version, expectedHash) {
29
console.log('Downloading version', version);
30
31
+ // Remove if existing
32
+ if (fs.existsSync(outputName)) {
33
+ fs.unlinkSync(outputName);
34
+ }
35
+
36
+ process.on('SIGINT', function () {
37
+ console.log('Interrupted, removing file.');
38
39
+ process.exit(1);
40
+ });
41
42
var file = fs.createWriteStream(outputName, { encoding: 'binary' });
43
https.get('https://ethereum.github.io/solc-bin/bin/' + version, function (response) {
44
if (response.statusCode !== 200) {
0 commit comments