Skip to content

Commit e32d176

Browse files
committed
Provide feedback if verbose mode is enabled
1 parent 3e1f5e9 commit e32d176

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/runtime/runtime.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,11 @@ char* appimage_hexlify(const char* bytes, const size_t numBytes) {
14271427
}
14281428

14291429
int main(int argc, char* argv[]) {
1430+
const bool verbose = (getenv("VERBOSE") != NULL);
1431+
if (verbose) {
1432+
fprintf(stderr, "Running in verbose mode\n");
1433+
}
1434+
14301435
char appimage_path[PATH_MAX];
14311436
char argv0_path[PATH_MAX];
14321437
char* arg;
@@ -1492,8 +1497,6 @@ int main(int argc, char* argv[]) {
14921497
exit(0);
14931498
}
14941499

1495-
const bool verbose = (getenv("VERBOSE") != NULL);
1496-
14971500
/* extract the AppImage */
14981501
if (arg && strcmp(arg, "appimage-extract") == 0) {
14991502
char* pattern;

0 commit comments

Comments
 (0)