Warn if no version is specified with upgrade cake task.
This commit is contained in:
parent
500d3491a7
commit
fbfbe22271
4
Cakefile
4
Cakefile
@ -92,7 +92,9 @@ option '-v', '--version [version]', 'Upgrade version.'
|
|||||||
|
|
||||||
task 'upgrade', (options) ->
|
task 'upgrade', (options) ->
|
||||||
{version} = options
|
{version} = options
|
||||||
return unless version
|
unless version
|
||||||
|
console.warn 'Version argument not specified. Exiting.'
|
||||||
|
return
|
||||||
regexp = RegExp VERSION, 'g'
|
regexp = RegExp VERSION, 'g'
|
||||||
for file in [CAKEFILE, INFILE, OUTFILE, LATEST]
|
for file in [CAKEFILE, INFILE, OUTFILE, LATEST]
|
||||||
data = fs.readFileSync file, 'utf8'
|
data = fs.readFileSync file, 'utf8'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user