mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +00:00
8bf9cd853f
Former-commit-id: ff5dba816571945e8c0837f3ef52485da5fd7314 [formerly 2f23f618fd8f01331b593ab4e064138047fe7c77] Former-commit-id: 1ec5e7440481e307be5e131ac0a416fd7d2fea9f
14 lines
269 B
Bash
Executable File
14 lines
269 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ ! -f "build/env.sh" ]; then
|
|
echo "$0 must be run from the root of the repository."
|
|
exit 2
|
|
fi
|
|
|
|
# set gitCommit when running from a Git checkout.
|
|
if [ -f ".git/HEAD" ]; then
|
|
echo "-ldflags '-X main.gitCommit $(git rev-parse HEAD)'"
|
|
fi
|