9 lines
237 B
Plaintext
9 lines
237 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# calculate build number
|
||
|
build_number=$(git rev-list --count HEAD)
|
||
|
|
||
|
# add build number to composer.json using jq
|
||
|
jq --arg bn "$build_number" '.build_number = $bn' composer.json > tmp.$$.json && mv tmp.$$.json composer.json
|
||
|
|