Perhaps quote the square brackets?
ci/woodpecker/push/woodpecker Pipeline failed Details

Jef Roosens 2022-04-17 17:26:12 +02:00
parent 5c27361e15
commit d0d1f60c7f
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 4 additions and 4 deletions

View File

@ -38,11 +38,11 @@ pipeline:
- rm -rf vc/v.c vc/v_win.c
- ./v -o vc/v.c -os cross cmd/v
- ./v -o vc/v_win.c -os windows -cc msvc cmd/v
- 'sed -i "1s/^/#define V_COMMIT_HASH \\"$COMMIT_HASH\"\n/" vc/v.c'
- 'sed -i "1s/^/#define V_COMMIT_HASH \\"$COMMIT_HASH\"\n/" vc/v_win.c'
- sed -i "1s/^/#define V_COMMIT_HASH \"$COMMIT_HASH\"\n/" vc/v.c
- sed -i "1s/^/#define V_COMMIT_HASH \"$COMMIT_HASH\"\n/" vc/v_win.c
# ensure the C files are over 5000 lines long, as a safety measure
- [ $(wc -l < vc/v.c) -gt 5000 ]
- [ $(wc -l < vc/v_win.c) -gt 5000 ]
- '[ $(wc -l < vc/v.c) -gt 5000 ]'
- '[ $(wc -l < vc/v_win.c) -gt 5000 ]'
- git -C vc add v.c v_win.c
- 'git -C vc commit -m "[v:master] $COMMIT_HASH - $COMMIT_MSG"'
# in case there are recent commits: