OSDN Git Service
(root)
/
alterlinux
/
dmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23cc43c
)
[fix] : Fixed SC1072, SC1073
author
hayao
<hayao@fascode.net>
Sat, 13 Feb 2021 07:49:26 +0000
(16:49 +0900)
committer
hayao
<hayao@fascode.net>
Sat, 13 Feb 2021 07:49:26 +0000
(16:49 +0900)
dmc
patch
|
blob
|
history
diff --git
a/dmc
b/dmc
index
6c47415
..
5f6747e
100755
(executable)
--- a/
dmc
+++ b/
dmc
@@
-181,7
+181,7
@@
lightdm_set_config(){
# 設定ファイルのキーを削除する
lightdm_remove_key(){
local key="${1}" _config
- if grep -E "^ ?${key}.+" "${LIGHTDM_CONFIG}"
> /dev/null 2>
&1; then
+ if grep -E "^ ?${key}.+" "${LIGHTDM_CONFIG}"
1>/dev/null 2>
&1; then
sed -i -r "s|^ ?${key} ?=.+||g" "${LIGHTDM_CONFIG}"
sed -i '/^$/d' "${LIGHTDM_CONFIG}"
fi