From 66e1f209a4e1c621b0ea4c211f453abd14044f15 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 13 May 2020 09:11:00 +0200 Subject: [PATCH] fix --- asset_jenkins.js | 4 ++++ jenkins.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/asset_jenkins.js b/asset_jenkins.js index 4ada885..f74bfe5 100644 --- a/asset_jenkins.js +++ b/asset_jenkins.js @@ -48,4 +48,8 @@ if (fs.existsSync ('README.md')) { } else { child_process.execSync ('yarn publish --access public'); } } +else { + console.log ('readme does not exist'); + process.exit (1); +} `; diff --git a/jenkins.js b/jenkins.js index 031f8d8..d0f8ea8 100644 --- a/jenkins.js +++ b/jenkins.js @@ -39,3 +39,7 @@ if (fs.existsSync ('README.md')) { } else { child_process.execSync ('yarn publish --access public'); } } +else { + console.log ('readme does not exist'); + process.exit (1); +}