fix errors.

This commit is contained in:
Jiacai Wang 2021-08-04 12:52:07 +08:00
parent 7f1a518c0c
commit 35479e1032
2 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@ steps:
- name: test - name: test
image: gcc:latest image: gcc:latest
commands: commands:
- pwd && ls - ls -l
- gcc hello.c -o hello - gcc hello.c -o hello
- ./hello drone! - ./hello drone!
- echo program exit with code $?

View File

@ -2,5 +2,5 @@
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
printf("hello, %s\n", argv[1]); printf("hello, %s\n", argv[1]);
return -1; return 0:
} }