Skip to content

Commit

Permalink
here you go synology people
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastGimbus committed Sep 24, 2023
1 parent c064af3 commit 5b7cb04
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/gpth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ void main(List<String> arguments) async {
// ask for everything
// @Deprecated('Interactive unzipping is suspended for now!')
// final zips = await interactive.getZips();
final inDir = await interactive.getInputDir();
late Directory inDir;
try {
inDir = await interactive.getInputDir();
} catch (e) {
print("Hmm, interactive selecting input dir crashed... \n"
"it looks like you're running in headless/on Synology/NAS...\n"
"If so, you have to use cli options - run 'gpth --help' to see them");
exit(69);
}
print('');
final out = await interactive.getOutput();
print('');
Expand Down

0 comments on commit 5b7cb04

Please sign in to comment.