Skip to content

Commit 5b7cb04

Browse files
committed
here you go synology people
1 parent c064af3 commit 5b7cb04

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bin/gpth.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,15 @@ void main(List<String> arguments) async {
9393
// ask for everything
9494
// @Deprecated('Interactive unzipping is suspended for now!')
9595
// final zips = await interactive.getZips();
96-
final inDir = await interactive.getInputDir();
96+
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+
}
97105
print('');
98106
final out = await interactive.getOutput();
99107
print('');

0 commit comments

Comments
 (0)