mirror of
https://github.com/urbit/shrub.git
synced 2024-12-11 11:02:25 +03:00
fd3756a3b7
If we're not on a branch, e.g. if we've checked out an arbitrary revision, then 'git branch --show-current' sensibly won't give us any output, and thus the pills produced by sh/create-ropsten-pills will be misnamed. Consuming HEAD with git-rev-parse has the same effect here, and should work in all cases of interst.
12 lines
257 B
Bash
Executable File
12 lines
257 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
sha=$(git rev-parse HEAD)
|
|
|
|
brass=$(nix-build nix/ops -A brass-ropsten --no-out-link)
|
|
ivory=$(nix-build nix/ops -A ivory-ropsten --no-out-link)
|
|
|
|
cp $brass ./brass-ropsten-${sha:0:5}.pill
|
|
cp $ivory ./ivory-ropsten-${sha:0:5}.pill
|