Skip to content

Commit 7c32e42

Browse files
authored
Merge pull request #40 from Daiyousei/patch-1
Fix MySQL version detection
2 parents 164ec09 + 88f682f commit 7c32e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

automysqlbackup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ load_default_config() {
113113
}
114114

115115
mysql_commands() {
116-
VERSION=`mysql -V | grep -oE "[0-9]+\.[0-9]+\.[0-9]+ | head -1"`
116+
VERSION=`mysql -V | grep -oE "[0-9]+\.[0-9]+\.[0-9]+" | head -1`
117117
NODOT_VER=`echo $VERSION | sed -${sed_Regex} 's/\.//g'`
118118
if [ "${CONFIG_mysql_dump_encrypted_login}" = "yes" ]; then
119119
export MYSQLDUMP="mysqldump --login-path=$CONFIG_mysql_dump_login_path"

0 commit comments

Comments
 (0)