Skip to content

Commit 34bab4e

Browse files
committed
Check if github_repository and github_ref variables are not NULL
1 parent 42a5a5d commit 34bab4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/appimagetool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,6 @@ main (int argc, char *argv[])
908908
printf("Will not guess update information since zsyncmake is missing\n");
909909
}
910910
}
911-
} else if(github_repository){
912911
gchar *zsyncmake_path = g_find_program_in_path ("zsyncmake");
913912
if (zsyncmake_path){
914913
char buf[1024];
@@ -930,6 +929,7 @@ main (int argc, char *argv[])
930929
printf("%s\n", updateinformation);
931930
}
932931
}
932+
} else if (github_repository != NULL && github_ref != NULL) {
933933
} else if(CI_COMMIT_REF_NAME){
934934
// ${CI_PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw/QtQuickApp-x86_64.AppImage?job=${CI_JOB_NAME}
935935
gchar *zsyncmake_path = g_find_program_in_path ("zsyncmake");

0 commit comments

Comments
 (0)