]> 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:55 +0000 (21:27 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 12 Dec 2022 03:27:55 +0000 (21:27 -0600)
build/scripts/bootstrap.sh

index f1ac1cdba5685b39889c8a47ff0f424320e117c1..389a37e6488368957aaebb855509df18d0446ba7 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/"