Skip to content
Snippets Groups Projects

Some changes for mountimage tool

Merged Thomas Mittelstädt requested to merge wip/mtt2hi/mountimage2 into apertis/v2024dev3
All threads resolved!
1 file
+ 11
3
Compare changes
  • Side-by-side
  • Inline
+ 11
3
@@ -3,7 +3,7 @@
#
# Copyright (c) 2023 Thomas Mittelstaedt <thomas.mittelstaedt@de.bosch.com>
VERSION=2.1.1
VERSION=2.1.2
VERSIONDATE=2023
SHORT=hp:m:vr:ulf
@@ -428,8 +428,16 @@ local parsed
LOADED_PROFILES[$profile]='y'
profilepath=$(get_filename_from_profile_id y "$profile")
if [ -n "$profilepath" ]; then
local xcmd
xcmd=($(cat $profilepath))
local xcmd=()
local line
while IFS= read -r line
do
line="$(echo $line|sed 's/#.*$//' )"
if [ -n "$line" ]; then
print_verbose_line "Parameter from profile:$line"
xcmd+=( "$line" )
fi
done < "$profilepath"
parse_command_line "${xcmd[@]}"
else
print_error_line "Can't find $profile at ${PROFILEBASES[@]}"
Loading