diff options
Diffstat (limited to 'server/tools/peertube.ts')
-rwxr-xr-x | server/tools/peertube.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/peertube.ts b/server/tools/peertube.ts index 7441161b1..21609deed 100755 --- a/server/tools/peertube.ts +++ b/server/tools/peertube.ts | |||
@@ -62,7 +62,7 @@ if (!process.argv.slice(2).length) { | |||
62 | 62 | ||
63 | getSettings() | 63 | getSettings() |
64 | .then(settings => { | 64 | .then(settings => { |
65 | const state = (settings.default === -1) ? | 65 | const state = (settings.default === undefined || settings.default === -1) ? |
66 | 'no instance selected, commands will require explicit arguments' : | 66 | 'no instance selected, commands will require explicit arguments' : |
67 | ('instance ' + settings.remotes[settings.default] + ' selected') | 67 | ('instance ' + settings.remotes[settings.default] + ' selected') |
68 | program | 68 | program |