Skip to content

Commit 8931f07

Browse files
committed
Merge pull request #9 from websoftix/patch-1
Send mysql connection test errors to log file
2 parents a0f7f15 + 5dba82a commit 8931f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysqlfragfinder.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if [[ ! $mysqlPass ]]; then
7474
fi
7575

7676
# Test connecting to the database:
77-
"${mysqlCmd}" -u"$mysqlUser" -p"$mysqlPass" -h"$mysqlHost" --skip-column-names --batch -e "show status" >/dev/null 2>&1
77+
"${mysqlCmd}" -u"$mysqlUser" -p"$mysqlPass" -h"$mysqlHost" --skip-column-names --batch -e "show status" >/dev/null 2>"$log"
7878
if [[ $? -gt 0 ]]; then
7979
echo "An error occured, check $log for more information.";
8080
exit 1;

0 commit comments

Comments
 (0)