summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-08-30 09:49:25 -0500
committerzachir <zachir@librem.one>2025-08-30 09:49:25 -0500
commitc77ba40391840191296134a0d20a3135b358c857 (patch)
tree6434aefb60d89ea33d13680201ec3530a1e891ed
parentcbb5f856400c665d84069fc0db1f7239cb87adb7 (diff)
Fix quotes (back, single, double)
-rwxr-xr-xdmenumount2
-rwxr-xr-xmailsync6
2 files changed, 4 insertions, 4 deletions
diff --git a/dmenumount b/dmenumount
index 54779e3..8cf9deb 100755
--- a/dmenumount
+++ b/dmenumount
@@ -73,7 +73,7 @@ alldrives="$(lsblk -rpo "name,type,size,mountpoint" | grep 'part\|rom\|crypt' |
for i in $alldrives; do
echo "$i" | grep -qi '([0-9.]*[mgt])' && continue
- if ! `blkid $i | grep -q 'crypto_LUKS'`; then
+ if ! blkid "$i" | grep -q 'crypto_LUKS'; then
usbdrives="$(echo "$alldrives" | grep "$i")\n$usbdrives"
fi
done
diff --git a/mailsync b/mailsync
index 37d8308..dff4e73 100755
--- a/mailsync
+++ b/mailsync
@@ -30,7 +30,7 @@ eval "$(grep -h -- \
export GPG_TTY="$(tty)"
-[ -n "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC" || MBSYNCRC="$HOME/.config/isync/mbsyncrc"
+[ -n "$MBSYNCRC" ] && alias mbsync='mbsync -c $MBSYNCRC' || MBSYNCRC="$HOME/.config/isync/mbsyncrc"
# Settings are different for MacOS (Darwin) systems.
case "$(uname)" in
@@ -45,7 +45,7 @@ case "$(uname)" in
pgrepoutput="$(pgrep -a X\(org\|wayland\))"
displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
- export DISPLAY=$x
+ export DISPLAY="$x"
notify-send --app-name="mutt-wizard" "New mail!" "📬 $2 new mail(s) in \`$1\` account."
done ;}
;;
@@ -74,7 +74,7 @@ if [ "$#" -eq "0" ]; then
accounts="$(awk '/^Channel/ {print $2}' "$MBSYNCRC")"
else
for arg in "$@"; do
- [ "${arg%${arg#?}}" = '-' ] && opts="${opts:+${opts} }${arg}" && shift 1
+ [ "${arg%"${arg#?}"}" = '-' ] && opts="${opts:+${opts} }${arg}" && shift 1
done
accounts=$*
fi