Skip to content

Commit 30a7d29

Browse files
elderingvmcj
authored andcommitted
Declare variables local.
This makes sure they're not set from a previous call to the function, which happened in my case and led to weird buggy behaviour. (cherry picked from commit 5dd3538)
1 parent b79eb7c commit 30a7d29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/dj_setup_database.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ EOF
5151
# Wrapper around mysql command to allow setting options, user, etc.
5252
mysql()
5353
{
54+
local user pass
55+
5456
# shellcheck disable=SC2153
5557
if [ -n "$DBUSER" ]; then
5658
user="-u $DBUSER"

0 commit comments

Comments
 (0)