Skip to content

Commit 87ea964

Browse files
committed
'bashise' conf/mysql & apply shellcheck fixes
1 parent 77763b4 commit 87ea964

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

conf/mysql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
#!/bin/sh -e
1+
#!/bin/bash -e
22

33
# download mysqltuner
44
dl() {
5-
[ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY"
6-
cd $2; curl -L -f -O $PROXY $1; cd -
5+
if [[ "$FAB_HTTP_PROXY" ]]; then
6+
PROXY=(--proxy "$FAB_HTTP_PROXY")
7+
fi
8+
cd "$2"
9+
curl -L -f -O "${PROXY[@]}" "$1"
10+
cd -
711
}
812

913
# Install mysqltuner at "latest" tag (via gh_releases) and from core dev's

0 commit comments

Comments
 (0)