summaryrefslogtreecommitdiffstats
path: root/src/cmd/opkg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/opkg.sh')
-rw-r--r--src/cmd/opkg.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh
index e1fc8ce..44a22bd 100644
--- a/src/cmd/opkg.sh
+++ b/src/cmd/opkg.sh
@@ -78,8 +78,7 @@ cmd_opkg_main()
fi
done
- . "${root}/etc/os-release"
- profile_set "${ID}"
+ profile_set "$(. "${root}/etc/os-release" && printf '%s' "${ID}")"
session_begin "${root}" . cmd_opkg_fini false