Avoid eval in cmus notify script
This commit is contained in:
parent
fa70f8cce9
commit
77eb7d2058
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue