mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 09:41:38 +08:00
Fix selectApp id
This commit is contained in:
@@ -100,7 +100,7 @@ export const commands = {
|
||||
const platform = checkPlatform(
|
||||
options.platform || (await question('平台(ios/android):')),
|
||||
);
|
||||
const id = args[0] || (await chooseApp(platform)).id;
|
||||
const id = args[0] ? parseInt(args[0]) : (await chooseApp(platform)).id;
|
||||
|
||||
let updateInfo = {};
|
||||
if (fs.existsSync('update.json')) {
|
||||
|
Reference in New Issue
Block a user