OSDN Git Service

[fix] : Fixed SC1072, SC1073
authorhayao <hayao@fascode.net>
Sat, 13 Feb 2021 07:49:26 +0000 (16:49 +0900)
committerhayao <hayao@fascode.net>
Sat, 13 Feb 2021 07:49:26 +0000 (16:49 +0900)
dmc

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