chore: Use consistent syntax for getting information from os-release
Please tell me if I escaped quotes correctly in `drivers.rs`
This commit is contained in:
parent
78959eff54
commit
974ba34225
3 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -f /etc/os-release ]; then
|
||||
export ID="$(cat /etc/os-release | grep -E '^ID=' | awk -F '=' '{print $2}')"
|
||||
export ID="$(awk -F= '/^ID=/ {gsub(/"/, "", $2); print $2}' /etc/os-release)"
|
||||
|
||||
if [ "$ID" = "alpine" ]; then
|
||||
echo "Setting up Alpine based image to run BlueBuild modules"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue