1 Star 0 Fork 15

gaoch_100/lm_sensors

forked from src-openEuler/lm_sensors 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pwmconfig-Fix-a-sed-expression.patch 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
From 38220cc2e97215588b662584d6ad84d63415842f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek@redhat.com>
Date: Thu, 20 Sep 2018 21:17:40 +0200
Subject: [PATCH 094/117] pwmconfig: Fix a sed expression
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This fixes commit 3daae37d58cd.
The escaping inside backticks is really kinda crazy.
Fixes #126
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
---
prog/pwm/pwmconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig
index c24c891..a40acd5 100755
--- a/prog/pwm/pwmconfig
+++ b/prog/pwm/pwmconfig
@@ -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:'
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gaoch_100/lm_sensors.git
git@gitee.com:gaoch_100/lm_sensors.git
gaoch_100
lm_sensors
lm_sensors
master

搜索帮助