chore: fix utils/apply_next_version.js
This commit is contained in:
parent
57c45f0d1f
commit
62e2570e67
|
|
@ -1,3 +1,5 @@
|
|||
const {execSync} = require('child_process');
|
||||
|
||||
const package = require('../package.json');
|
||||
let version = package.version;
|
||||
const dashIndex = version.indexOf('-');
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ if [[ $# < 1 ]]; then
|
|||
fi
|
||||
|
||||
if [[ $(git rev-parse --abbrev-ref HEAD) != "master" ]]; then
|
||||
echo "ERROR: Cannot publish from branch other then 'master'"
|
||||
echo "ERROR: Cannot publish from branch '$(git rev-parse --abbrev-ref HEAD)' - it has to be 'master'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue