aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-17 18:10:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-17 18:17:25 +1200
commitc3f5e8496e2850cba524e2a4ade2396cf6092b3c (patch)
treeb8173f5c479e98e964fa29d786398b489280495f /sh
parentUpdate README to reflect change of shell funcs (diff)
downloaddotfiles-c3f5e8496e2850cba524e2a4ade2396cf6092b3c.tar.gz
dotfiles-c3f5e8496e2850cba524e2a4ade2396cf6092b3c.zip
Include shrc.d in check-sh target
Quote a string entirely to appease shellcheck too
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/mysql.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/shrc.d/mysql.sh b/sh/shrc.d/mysql.sh
index 00b6930c..d37c3ead 100644
--- a/sh/shrc.d/mysql.sh
+++ b/sh/shrc.d/mysql.sh
@@ -11,9 +11,9 @@
# database=bar
#
mysql() {
- if [ -f "$HOME"/.mysql/"$1".cnf ] ; then
+ if [ -f "$HOME/.mysql/$1".cnf ] ; then
shift
- set -- --defaults-extra-file="$HOME"/.mysql/"$1".cnf "$@"
+ set -- --defaults-extra-file="$HOME/.mysql/$1".cnf "$@"
fi
command mysql "$@"
}