Francesco Palmarini 5 年之前
父節點
當前提交
2b73d324af
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      install.sh

+ 3 - 3
install.sh

@@ -3,12 +3,12 @@
 INSTALL_DIR="/opt/lenovo_fix"
 
 if pidof systemd 2>&1 1>/dev/null; then
-    systemctl stop lenovo_fix.service &>/dev/null
+    systemctl stop lenovo_fix.service >/dev/null 2>&1
 elif pidof runit 2>&1 1>/dev/null; then
-    sv down lenovo_fix &>/dev/null
+    sv down lenovo_fix >/dev/null 2>&1
 fi
 
-mkdir -p "$INSTALL_DIR" &>/dev/null
+mkdir -p "$INSTALL_DIR" >/dev/null 2>&1
 set -e
 
 cd "$(dirname "$0")"