diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-09-30 19:28:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-30 19:28:12 -0500 |
| commit | ff2b8efa65f42afb05e4227965f7920599d8bd97 (patch) | |
| tree | 04648f03a45ee51772d4017646c0b835ed032f1c /bin | |
| parent | d11b46884919add15d89e21512e581ecec8d2d89 (diff) | |
| parent | 4623fd59125c7fa336784ca73c0de6605e52cb3b (diff) | |
| download | slskd-ff2b8efa65f42afb05e4227965f7920599d8bd97.tar.gz | |
Merge pull request #1863 from slskd/dockerfile
Fix failing Docker build
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/build | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -39,7 +39,12 @@ while test $# -gt 0; do esac done -if [ -z "$version" ]; then +if [ -z "$version" ]; then + if ! command -v git >/dev/null 2>&1; then + echo "💥 error: git is required to compose the version, but the executable couldn't be found" + exit 1 + fi + tag=$(git describe --tags --abbrev=0) sha=$(git rev-parse --short HEAD) version=$tag+$sha |
