commit 8199bbcf62724e411ccda750f679f16b880711d7
parent b5b0c2c84bc6eef9c77c8fee124970b47d1ec160
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 8 Jun 2021 14:12:51 +0200
mpcq: fix params parsing
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/mpcq b/scripts/mpcq
@@ -1,4 +1,5 @@
#!/bin/sh
+set -x
die() { printf '%s\n' "$1" >&2 && exit 1; }
checkdeps() {
@@ -48,7 +49,7 @@ while [ $(($#)) -ne 0 ]; do
exit 1
;;
*) # preserve positional arguments
- PARAMS="$PARAMS $1"
+ PARAMS="$PARAMS $(printf '%q' "$1")"
shift
;;
esac