escaped every parameter in all scripts
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
DATA_DIR="/bitwarden/data"
|
||||
DATA_DB="${DATA_DIR}/db.sqlite3"
|
||||
@@ -53,7 +53,7 @@ function send_mail() {
|
||||
local MAIL_VERBOSE="-v"
|
||||
fi
|
||||
|
||||
echo "$2" | mailx ${MAIL_VERBOSE} -s "$1" ${MAIL_SMTP_VARIABLES} ${MAIL_TO}
|
||||
echo "$2" | mailx "${MAIL_VERBOSE}" -s "$1" ${MAIL_SMTP_VARIABLES} "${MAIL_TO}"
|
||||
if [[ $? != 0 ]]; then
|
||||
color red "mail sending failed"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user