Skip to content

Commit 1488fce

Browse files
committed
refact: api state + virt_type
1 parent e454c24 commit 1488fce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎system/cuos/api.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ api_command_state() {
2727
local file_state="${T_FILE_STATE:-"/data/state.json"}"
2828
local file_slot="${T_FILE_SLOT:-"/etc/active_slot"}"
2929
local file_version="${T_FILE_VERSION:-"/etc/image"}"
30-
local virt_type="$(systemd-detect-virt)"
30+
local virt_type
31+
virt_type="$(systemd-detect-virt)"
3132

3233
local version
3334
version="$(cat "${file_version}")"

0 commit comments

Comments
 (0)