mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
build: remove quotes from rust-version
The script would include the quotes and so running `build/build` would
result in:
$ build/build
Running build..
✓ Radicle key already in ssh-agent
Building Radicle 1.2.0..
Creating archive of repository at e9cf91… in build/heartwood-e9cf91….tar.gz..
Building image (radicle-build-1.2.0)..
[1/2] STEP 1/17: FROM rust:"1.85"-alpine3.20 AS builder
Error: creating build container: parsing reference "rust:\"1.85\"-alpine3.20": invalid reference format
Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
This commit is contained in:
committed by
Lorenz Leutgeb
co-authored by
Lorenz Leutgeb
parent
e9cf91e1bc
commit
6f25d73d3d
+8
-4
@@ -1,7 +1,11 @@
|
||||
#!/bin/sh
|
||||
#! /usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if ! version=$(grep -m 1 -oP "channel\s*=\s*\K(.*)" rust-toolchain.toml); then
|
||||
echo "fatal: no rust version found via rust-toolchain.toml" >&2 ; exit 1
|
||||
if ! version=$(grep -m 1 -oP '^\s*channel\s*=\s*"?\K([\d\.]+)' rust-toolchain.toml)
|
||||
then
|
||||
echo "fatal: no rust version found via rust-toolchain.toml" >&2
|
||||
exit 1
|
||||
else
|
||||
echo "$version"
|
||||
fi
|
||||
|
||||
echo "$version"
|
||||
|
||||
Reference in New Issue
Block a user