瀏覽代碼

adjust sed to edit inline due to empty file bug

Casey DeLorme 2 年之前
父節點
當前提交
d52b53b9f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch.sh

+ 1 - 1
arch.sh

@@ -86,7 +86,7 @@ fi
 # conditionally install laptop packages
 if [ -e /sys/class/power_supply/BAT0 ]; then
 	PACKAGES="$PACKAGES xf86-input-synaptics acpid acpilight tlp"
-	sed "s/panel_items = LTSC/panel_items = LTSBC/g" /srv/arch-desktop/install/etc/skel/.config/tint2/tint2rc > /srv/arch-desktop/install/etc/skel/.config/tint2/tint2rc
+	sed -i "s/panel_items = LTSC/panel_items = LTSBC/g" /srv/arch-desktop/install/etc/skel/.config/tint2/tint2rc
 fi
 
 # install all packages