summaryrefslogtreecommitdiffstats
path: root/src/profile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile.sh')
-rw-r--r--src/profile.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/profile.sh b/src/profile.sh
index 9bbd9ce..44e3022 100644
--- a/src/profile.sh
+++ b/src/profile.sh
@@ -50,6 +50,20 @@ profile_set()
return 0
}
+profile_detect()
+{
+ local root="${1}"
+
+ for prof in ${profiles}; do
+ if "prof_${prof}_detect_root" "${root}"; then
+ profile="${prof}"
+ return 0
+ fi
+ done
+
+ error 1 "$(get_msg 'profile_not_detected')" "${root}"
+}
+
profile_normalize_suite()
{
local suite="${1}"