From f459ddb18a57eee8891f701d36b289a4987432c4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Oct 2014 13:47:34 +1300 Subject: Remove some unneeded quotes God bless you, shellcheck(1) --- bash/bashrc.d/mysql.bash | 4 ++-- sh/profile | 2 +- 2 files changed, 3 insertions(+), 3 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) diff --git a/sh/profile b/sh/profile index 9219ac38..5059d778 100644 --- a/sh/profile +++ b/sh/profile @@ -1,6 +1,6 @@ # Add ~/.local/bin to PATH if it exists if [ -d "$HOME"/.local/bin ] ; then - PATH="$HOME"/.local/bin:"$PATH" + PATH=$HOME/.local/bin:$PATH fi # Load all supplementary scripts in ~/.profile.d -- cgit v1.2.3