escaped every parameter in all scripts

This commit is contained in:
Mustapha Zorgati
2021-02-23 13:49:38 +01:00
parent 1b437bcbb3
commit c0897eebb7
7 changed files with 40 additions and 40 deletions
+2 -2
View File
@@ -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