Skip to content

Commit

Permalink
Provide feedback if verbose mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Nov 24, 2024
1 parent 3e1f5e9 commit e32d176
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/runtime/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,11 @@ char* appimage_hexlify(const char* bytes, const size_t numBytes) {
}

int main(int argc, char* argv[]) {
const bool verbose = (getenv("VERBOSE") != NULL);
if (verbose) {
fprintf(stderr, "Running in verbose mode\n");
}

char appimage_path[PATH_MAX];
char argv0_path[PATH_MAX];
char* arg;
Expand Down Expand Up @@ -1492,8 +1497,6 @@ int main(int argc, char* argv[]) {
exit(0);
}

const bool verbose = (getenv("VERBOSE") != NULL);

/* extract the AppImage */
if (arg && strcmp(arg, "appimage-extract") == 0) {
char* pattern;
Expand Down

0 comments on commit e32d176

Please sign in to comment.