Explorar el Código

bypass failed removal, add force flag just in case

Casey DeLorme hace 6 días
padre
commit
5981cd8f27
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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