Skip to content

Commit

Permalink
fix release publish
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Feb 12, 2023
1 parent a681abd commit 614428e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cpk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ int cpk_main(int argc, char *argv[]) {

DX_DEBUG("cpk", "%s %s [os: %s %s]", version, revision, cpk::GetOSType().c_str(), cpk::GetOSArch().c_str());

if(argc > 2) {
if(argc >= 2) {
if (strcmp(argv[1], "install") == 0) {
std::vector<CPKPackage> packages;
for (int i = 2; i < argc; i++)
Expand All @@ -402,8 +402,6 @@ int cpk_main(int argc, char *argv[]) {
}
InstallPackages(packages);
}
}
if(argc == 2) {
if (strcmp(argv[1], "publish") == 0) {
PublishPacket();
}
Expand Down

0 comments on commit 614428e

Please sign in to comment.