Avoid eval in cmus notify script

This commit is contained in:
Yorick Barbanneau 2023-04-16 18:26:09 +02:00
parent fa70f8cce9
commit 77eb7d2058

View file

@ -2,12 +2,11 @@
# #
#CMUS notification #CMUS notification
# #
set -x
body="" body=""
while [ "$#" -ge 2 ] while [ "$#" -ge 2 ]
do do
eval $1='$2' printf -v "$1" "%s" "$2"
shift shift
shift shift
done done