Skip to content
Snippets Groups Projects
Verified Commit 5ac82203 authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

fix(db-functions): do proper error handling for local variables


This paradigm seems to be in dbscripts since a decade, which effectively
is void. Using a subshell with a local variable declaration basically
always leads to success as the local declaration masks the return code
of the subshell, which means an early exit using `|| return 1` will
never work.

Fix this by splitting local variable declaration from assignment.

Signed-off-by: Levente Polyak's avatarLevente Polyak <anthraxx@archlinux.org>
parent 5a398bd0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment