Browse Source

added double quoting as suggested by shellcheck

pull/651/head
pdoroff 9 years ago
parent
commit
309f6618b0
  1. 6
      deploy/weechat.sh

6
deploy/weechat.sh

@ -41,10 +41,10 @@ weechat_deploy() {
_info "WEECHAT_PEM not set, defaulting to ${HOME}/.weechat/ssl/relay.pem" _info "WEECHAT_PEM not set, defaulting to ${HOME}/.weechat/ssl/relay.pem"
WEECHAT_PEM="${HOME}/.weechat/ssl/relay.pem" WEECHAT_PEM="${HOME}/.weechat/ssl/relay.pem"
fi fi
if [ -w $WEECHAT_PEM ]; then
if [ -w "$WEECHAT_PEM" ]; then
_info "$WEECHAT_PEM exists and is writable, backing up and overwriting" _info "$WEECHAT_PEM exists and is writable, backing up and overwriting"
cp $WEECHAT_PEM $WEECHAT_PEM.bak
cat $_ckey $_cfullchain >$WEECHAT_PEM
cp "$WEECHAT_PEM" "$WEECHAT_PEM.bak"
cat "$_ckey" "$_cfullchain" >"$WEECHAT_PEM"
_info "Deployed $_cdomain to weechat" _info "Deployed $_cdomain to weechat"
_debug "Attempting to issue /relay sslcertky to weechat via fifo" _debug "Attempting to issue /relay sslcertky to weechat via fifo"
for fifo in $WEECHAT_HOME/weechat_fifo_*; do for fifo in $WEECHAT_HOME/weechat_fifo_*; do

Loading…
Cancel
Save