Skip to content

Commit

Permalink
test/system: ...
Browse files Browse the repository at this point in the history
  • Loading branch information
debarshiray committed Jun 23, 2023
1 parent baa6910 commit bdea661
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/system/libs/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ function find_os_release() {


# Returns the content of field ID in os-release
function get_system_id() {
function get_system_id() (
local os_release

os_release="$(find_os_release)"
Expand All @@ -505,8 +505,9 @@ function get_system_id() {
return
fi

echo $(awk -F= '/ID/ {print $2}' $os_release | head -n 1)
}
. "$os_release"
echo "$ID"
)


# Returns the content of field VERSION_ID in os-release
Expand Down

0 comments on commit bdea661

Please sign in to comment.