We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c064af3 commit 5b7cb04Copy full SHA for 5b7cb04
bin/gpth.dart
@@ -93,7 +93,15 @@ void main(List<String> arguments) async {
93
// ask for everything
94
// @Deprecated('Interactive unzipping is suspended for now!')
95
// final zips = await interactive.getZips();
96
- final inDir = await interactive.getInputDir();
+ late Directory inDir;
97
+ try {
98
+ inDir = await interactive.getInputDir();
99
+ } catch (e) {
100
+ print("Hmm, interactive selecting input dir crashed... \n"
101
+ "it looks like you're running in headless/on Synology/NAS...\n"
102
+ "If so, you have to use cli options - run 'gpth --help' to see them");
103
+ exit(69);
104
+ }
105
print('');
106
final out = await interactive.getOutput();
107
0 commit comments