浏览代码

bypass failed removal, add force flag just in case

Casey DeLorme 6 天之前
父节点
当前提交
5981cd8f27
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch.sh

+ 1 - 1
arch.sh

@@ -277,7 +277,7 @@ sed -i '/^default/d' /boot/loader/loader.conf
 echo "default arch.conf" >> /boot/loader/loader.conf
 
 # remove resolv.conf since connman is wierd ???
-rm /etc/resolv.conf
+rm -f /etc/resolv.conf || echo "ignore failed removal; a task left to the user..."
 
 # check boot loader configuration
 bootctl status