Ver Fonte

bypass failed removal, add force flag just in case

Casey DeLorme há 6 dias atrás
pai
commit
5981cd8f27
1 ficheiros alterados com 1 adições e 1 exclusões
  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