Skip to content

Commit

Permalink
refactor: Shorten FEDORA_VERSION line (blue-build#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosSamLoh authored and crawfordlong committed Jun 3, 2023
1 parent cf96123 commit 7023b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ get_yaml_string() {
}

# Automatically determine which Fedora version we're building.
FEDORA_VERSION="$(cat /usr/lib/os-release | grep '^VERSION_ID=' | head -1 | sed 's,^VERSION_ID=,,')"
FEDORA_VERSION="$(cat /usr/lib/os-release | grep -Po '(?<=VERSION_ID=)\d+')"

# Read configuration variables.
BASE_IMAGE="$(get_yaml_string '.base-image')"
Expand Down

0 comments on commit 7023b5c

Please sign in to comment.