Skip to content

Commit

Permalink
Change order
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Gracioso <[email protected]>
  • Loading branch information
lbgracioso committed May 8, 2024
1 parent 5294ee0 commit b3dca2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ int main(int argc, const char** argv)
return EXIT_SUCCESS;
}

if (cloyster::runAsRoot) {
cloyster::checkEffectiveUserId();
}

if (cloyster::dryRun) {
fmt::print("Dry run enabled.\n");
} else {
Expand All @@ -125,10 +129,6 @@ int main(int argc, const char** argv)
}
}

if (cloyster::runAsRoot) {
cloyster::checkEffectiveUserId();
}

//@TODO implement CLI feature
if (cloyster::enableCLI) {
fmt::print("CLI feature not implemented.\n");
Expand Down

0 comments on commit b3dca2a

Please sign in to comment.