-
- Downloads
fix(db-functions): do proper line based var assignment with mapfile
Using read does not work as the previous implementer expected the
feature to work, as a delimiter of d'\n' will not operate like expected.
Use proper line based output parsing by using mapfile to read the output
line by line into an array, and then use array range to reference the
content into variables. This way we can actually check if the subshell
had any errors and abort in case anything went wrong.
Signed-off-by:
Levente Polyak <anthraxx@archlinux.org>
Please register or sign in to comment