fixed minor shellcheck issues

This commit is contained in:
Maarten van Gompel 2021-04-05 12:08:22 +02:00
parent f9b96d2d28
commit 6dc18e22a3
2 changed files with 2 additions and 1 deletions

View file

@ -52,6 +52,7 @@ editcontactnumber() {
deletecontact() { deletecontact() {
name="$(echo "$1" | cut -d" " -f2)" name="$(echo "$1" | cut -d" " -f2)"
# shellcheck disable=SC2059
ENTRIES="$(printf "$icon_cls No\n$icon_chk Yes")" ENTRIES="$(printf "$icon_cls No\n$icon_chk Yes")"
PICKED="$( PICKED="$(
echo "$ENTRIES" | echo "$ENTRIES" |

View file

@ -74,7 +74,7 @@ sendtextmenu() {
menu dmenu -c -idx 1 -p "Confirm" -l 10 menu dmenu -c -idx 1 -p "Confirm" -l 10
)" )"
if echo "$CONFIRM" | grep -q "Send"; then if echo "$CONFIRM" | grep -q "Send"; then
(cat "$DRAFT" | sxmo_modemsendsms.sh "$NUMBER" -) && \ (sxmo_modemsendsms.sh "$NUMBER" - < "$DRAFT") && \
rm "$DRAFT" && \ rm "$DRAFT" && \
echo "Sent text to $NUMBER">&2 && exit 0 echo "Sent text to $NUMBER">&2 && exit 0
elif echo "$CONFIRM" | grep -q "Edit"; then elif echo "$CONFIRM" | grep -q "Edit"; then