Skip to content

Commit c7d3674

Browse files
committed
Fix --appimage-mount not yet implemented error, closes #510
1 parent ac9b50a commit c7d3674

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,10 @@ main (int argc, char *argv[])
361361
exit(0);
362362
}
363363

364-
if(arg && strncmp(arg, "appimage-", 8) == 0) {
365-
fprintf(stderr,"%s is not yet implemented in version %s\n", arg, VERSION_NUMBER);
364+
// If there is an argument starting with appimage- (but not appimage-mount which is handled further down)
365+
// then stop here and print an error message
366+
if((arg && strncmp(arg, "appimage-", 8) == 0) && (arg && strcmp(arg,"appimage-mount")!=0)) {
367+
fprintf(stderr,"--%s is not yet implemented in version %s\n", arg, VERSION_NUMBER);
366368
exit(1);
367369
}
368370

0 commit comments

Comments
 (0)