Skip to content

Commit

Permalink
[skip audit]fix for shell check
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-yu committed Oct 17, 2019
1 parent 4cdf6b1 commit b7ca506
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi
# Expose parameter for docker needs something like "-p 1337:1337 -p 1338:1338", but not "-p 1337:1337 1338:1338"
EXPOSE_PARAM=()
for port in "${EXPOSE[@]}"; do
EXPOSE_PARAM+=(-p ${port})
EXPOSE_PARAM+=(-p "$port")
done

# Docker Arguments
Expand Down
2 changes: 1 addition & 1 deletion scripts/cita.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ do_logrotate() {

# Wait for services to rotate their logs
sleep 2
for logfile in ${NODE_LOGS_DIR}/cita-*.log; do
for logfile in "$NODE_LOGS_DIR"/cita-*.log; do
if [[ ${logs} != *"${logfile}"* ]]; then
echo "./${NODE_NAME}/logs/${logfile##*/}"
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/security_audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [[ "$(git log -n 1 --format="%s")" =~ \[skip\ audit\] ]]; then
exit 0
fi

which cargo-audit
command -v cargo-audit
ret=$?
if [ "${ret}" -ne 0 ]; then
echo "[Info_] Install Security Audit."
Expand Down

0 comments on commit b7ca506

Please sign in to comment.