mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
Exit with a warning if "env rm" id value is not an integer
Change-type: patch Signed-off-by: Lucian <lucian.buzzo@gmail.com>
This commit is contained in:
parent
2390ddc02d
commit
34f4c1f6cc
@ -136,6 +136,10 @@ export const remove: CommandDefinition<
|
||||
const balena = (await import('balena-sdk')).fromSharedOptions();
|
||||
const patterns = await import('../utils/patterns');
|
||||
|
||||
if (typeof params.id !== 'number') {
|
||||
patterns.exitWithExpectedError('The environment variable id must be an integer');
|
||||
}
|
||||
|
||||
return patterns
|
||||
.confirm(
|
||||
options.yes || false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user