]> Kevux Git Server - fll/commitdiff
Bugfix: The bootsrap script needs to treat -s/--settings as a possible path.
authorKevin Day <thekevinday@gmail.com>
Mon, 12 Dec 2022 03:27:34 +0000 (21:27 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 12 Dec 2022 03:27:34 +0000 (21:27 -0600)
build/scripts/bootstrap.sh

index e24a63982fa2d3021bd582d05ed8ad8dddf77ab3..ac7d5aeb1473f8696f9317abd1dd2d62aa13d1d9 100644 (file)
@@ -177,7 +177,13 @@ bootstrap_main() {
     p=
   fi
 
-  settings_file="${path_data}build/$settings_name"
+  # If the settings_name has a directory separator, then assume it is a path to the settings file.
+  if [[ $(echo $settings_name | grep -s -o '/') == "" ]] ; then
+    settings_file="${path_data}build/$settings_name"
+  else
+    settings_file="$settings_name"
+  fi
+
   settings_defines="${path_data}build/defines"
   path_settings="${path_data}settings/"
   path_build_stage="${path_build}stage/"