forked from gluster/gluster-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve shellcheck errors across repo
Signed-off-by: Jose A. Rivera <[email protected]>
- Loading branch information
Showing
24 changed files
with
98 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR=$(cd $(dirname $0); pwd) | ||
SCRIPT_DIR="$(realpath "$(dirname "${0}")")" | ||
|
||
echo "running tests in ${SCRIPT_DIR}" | ||
|
||
for test in ${SCRIPT_DIR}/test_*.sh ; do | ||
$test | ||
${test} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/bin/bash | ||
|
||
DEMO_DIR="$(cd $(dirname $0) ; pwd)" | ||
DEMO_DIR="$(realpath "$(dirname "${0}")")" | ||
VAGRANT_DIR="${DEMO_DIR}/.." | ||
|
||
. ${DEMO_DIR}/util.sh | ||
. "${DEMO_DIR}/util.sh" | ||
|
||
cd ${VAGRANT_DIR} | ||
cd "${VAGRANT_DIR}" || exit 1 | ||
|
||
desc "show machines" | ||
run "vagrant status" | ||
|
||
desc "running demo on master..." | ||
run "" | ||
|
||
${DEMO_DIR}/demo-inside-wrapper.sh ${DEMO_DIR}/demo-inside-deploy.sh | ||
"${DEMO_DIR}/demo-inside-wrapper.sh" "${DEMO_DIR}/demo-inside-deploy.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/bash | ||
|
||
DEMO_DIR="$(cd $(dirname $0) ; pwd)" | ||
DEMO_DIR="$(realpath "$(dirname "${0}")")" | ||
VAGRANT_DIR="${DEMO_DIR}/.." | ||
|
||
cd ${VAGRANT_DIR} | ||
cd "${VAGRANT_DIR}" || exit 1 | ||
|
||
${DEMO_DIR}/demo-inside-wrapper.sh ${DEMO_DIR}/demo-inside-dynamic-provisioning.sh | ||
"${DEMO_DIR}/demo-inside-wrapper.sh" "${DEMO_DIR}/demo-inside-dynamic-provisioning.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/bin/bash | ||
|
||
DEMO_DIR="$(cd $(dirname $0) ; pwd)" | ||
DEMO_DIR="$(realpath "$(dirname "${0}")")" | ||
VAGRANT_DIR="${DEMO_DIR}/.." | ||
SSH_CONFIG=${DEMO_DIR}/ssh-config | ||
|
||
cd ${VAGRANT_DIR} | ||
cd "${VAGRANT_DIR}" || exit 1 | ||
|
||
DEMO=$1 | ||
|
||
vagrant ssh-config > ${SSH_CONFIG} | ||
vagrant ssh-config > "${SSH_CONFIG}" | ||
|
||
scp -F ${SSH_CONFIG} ${DEMO_DIR}/util.sh $DEMO master: >/dev/null 2>&1 | ||
ssh -t -F ${SSH_CONFIG} master ./$(basename $DEMO) | ||
scp -F "${SSH_CONFIG}" "${DEMO_DIR}/util.sh" "${DEMO}" master: >/dev/null 2>&1 | ||
ssh -t -F "${SSH_CONFIG}" master "./$(basename "${DEMO}")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#!/bin/bash | ||
|
||
DEMO_DIR="$(cd $(dirname $0) ; pwd)" | ||
DEMO_DIR="$(realpath "$(dirname "${0}")")" | ||
VAGRANT_DIR="${DEMO_DIR}/.." | ||
DEPLOY_DIR="${VAGRANT_DIR}/../deploy" | ||
SSH_CONFIG=${DEMO_DIR}/ssh-config | ||
SSH_CONFIG="${DEMO_DIR}/ssh-config" | ||
|
||
cd ${VAGRANT_DIR} | ||
cd "${VAGRANT_DIR}" || exit 1 | ||
|
||
vagrant up | ||
./up.sh | ||
|
||
vagrant ssh-config > ${SSH_CONFIG} | ||
vagrant ssh-config > "${SSH_CONFIG}" | ||
|
||
scp -r -F "${SSH_CONFIG}" "${DEPLOY_DIR}" master: | ||
|
||
for NODE in node0 node1 node2 ; do | ||
ssh -t -F ${SSH_CONFIG} $NODE "sudo docker pull gcr.io/google_containers/nginx-slim:0.8" | ||
ssh -t -F "${SSH_CONFIG}" "${NODE}" "sudo docker pull gcr.io/google_containers/nginx-slim:0.8" | ||
done | ||
|
||
${DEMO_DIR}/demo-inside-wrapper.sh ${DEMO_DIR}/demo-inside-prepare.sh | ||
"${DEMO_DIR}/demo-inside-wrapper.sh" "${DEMO_DIR}/demo-inside-prepare.sh" |
Oops, something went wrong.