aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck/sh2
-rw-r--r--sh/shrc.d/mysql.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/check/sh b/check/sh
index 47e41c77..ec3ba339 100755
--- a/check/sh
+++ b/check/sh
@@ -1,5 +1,5 @@
#!/bin/sh
-for sh in sh/* sh/profile.d/* ; do
+for sh in sh/* sh/profile.d/* sh/shrc.d/* ; do
[ -f "$sh" ] || continue
sh -n "$sh" || exit
done
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 "$@"
}