diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-16 13:47:34 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-16 13:47:34 +1300 |
commit | f459ddb18a57eee8891f701d36b289a4987432c4 (patch) | |
tree | 1ecdf2e213d489ceb13a6ff215be29601c3470b0 /bash/bashrc.d/mysql.bash | |
parent | Use case statement; cleaner (diff) | |
download | dotfiles-f459ddb18a57eee8891f701d36b289a4987432c4.tar.gz dotfiles-f459ddb18a57eee8891f701d36b289a4987432c4.zip |
Remove some unneeded quotes
God bless you, shellcheck(1)
Diffstat (limited to 'bash/bashrc.d/mysql.bash')
-rw-r--r-- | bash/bashrc.d/mysql.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/mysql.bash b/bash/bashrc.d/mysql.bash index 32eba449..bc4d0272 100644 --- a/bash/bashrc.d/mysql.bash +++ b/bash/bashrc.d/mysql.bash @@ -9,7 +9,7 @@ # password=SsJ2pICe226jM # mysql() { - local config="$HOME"/.mysql/"$1".cnf + local config=$HOME/.mysql/$1.cnf if [[ -r $config ]] ; then shift command mysql --defaults-extra-file="$config" "$@" @@ -23,7 +23,7 @@ _mysql() { local word=${COMP_WORDS[COMP_CWORD]} # Check directory exists and has at least one .cnf file - local dir="$HOME"/.mysql + local dir=$HOME/.mysql if [[ ! -d $dir ]] || ( shopt -s nullglob dotglob declare -a files=("$dir"/*.cnf) |