~mil/sxmo-utils

ac939e4ac742fa9dbe1125936a67e40d278a0b67 — Stacy Harper 23 days ago e749463
fix some shellcheck issues
M configs/default_hooks/sxmo_hook_statusbar.sh => configs/default_hooks/sxmo_hook_statusbar.sh +1 -1
@@ 12,7 12,7 @@
. sxmo_common.sh

#colours using pango markup
if [ $SXMO_WM = "sway" ]; then
if [ "$SXMO_WM" = "sway" ]; then
	SPAN_RED="<span foreground=\"#ff5454\">"
	SPAN_GREEN="<span foreground=\"#54ff54\">"
	SPAN_ORANGE="<span foreground=\"#ffa954\">"

M scripts/core/sxmo_audio.sh => scripts/core/sxmo_audio.sh +6 -6
@@ 85,21 85,21 @@ _callaudiodsubmenu() {
	fi

	if sxmo_modemaudio.sh is_call_audio_mode; then
		printf "$icon_ton Call Mode ^ sxmo_modemaudio.sh disable_call_audio_mode\n"
		printf "%s Call Mode ^ sxmo_modemaudio.sh disable_call_audio_mode\n" "$icon_ton"
	else
		printf "$icon_tof Call Mode ^ sxmo_modemaudio.sh enable_call_audio_mode\n"
		printf "%s Call Mode ^ sxmo_modemaudio.sh enable_call_audio_mode\n" "$icon_tof"
	fi

	if sxmo_modemaudio.sh is_enabled_speaker; then
		printf "$icon_tof Earpiece Out ^ sxmo_modemaudio.sh disable_speaker\n"
		printf "%s Earpiece Out ^ sxmo_modemaudio.sh disable_speaker\n" "$icon_tof"
	else
		printf "$icon_ton Earpiece Out ^ sxmo_modemaudio.sh enable_speaker\n"
		printf "%s Earpiece Out ^ sxmo_modemaudio.sh enable_speaker\n" "$icon_ton"
	fi

	if sxmo_modemaudio.sh is_muted_mic; then
		printf "$icon_tof Mic ^ sxmo_modemaudio.sh unmute_mic\n"
		printf "%s Mic ^ sxmo_modemaudio.sh unmute_mic\n" "$icon_tof"
	else
		printf "$icon_ton Mic ^ sxmo_modemaudio.sh mute_mic\n"
		printf "%s Mic ^ sxmo_modemaudio.sh mute_mic\n" "$icon_ton"
	fi
}


M scripts/modem/sxmo_modemtext.sh => scripts/modem/sxmo_modemtext.sh +1 -1
@@ 57,7 57,7 @@ sendtextmenu() {
	DRAFT="$SXMO_LOGDIR/$NUMBER/draft.txt"
	if [ ! -f "$DRAFT" ]; then
		mkdir -p "$(dirname "$DRAFT")"
		echo ${SXMO_DEFAULT_DRAFT:-Enter text message here} > "$DRAFT"
		echo "${SXMO_DEFAULT_DRAFT:-Enter text message here}" > "$DRAFT"
	fi

	# shellcheck disable=SC2086