Jelajahi Sumber

bypass failed removal, add force flag just in case

Casey DeLorme 6 hari lalu
induk
melakukan
5981cd8f27
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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