pwmconfig: Fix a sed expression

This fixes commit 3daae37d58.
The escaping inside backticks is really kinda crazy.

Fixes #126

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk committed 2018-09-20 21:19:11 +02:00
1 parent bcc5c67eff
commit 38220cc2e9
1 file changed
+1 -1
+1 -1
View File
@@ -879,7 +879,7 @@ select pwms in $pwmactive "Change INTERVAL" "Just quit" "Save and quit" "Show co
break ;;
"$(echo ${pwmactive} |sed -e 's/ /\n/g' | egrep "${pwms}")" )
pwmsed=$(echo ${pwms} | sed -e 's/\//\\\\\//g') #escape / for sed
pwmsed=$(echo ${pwms} | sed -e 's/\//\\\//g') #escape / for sed
echo
echo 'Devices:'