From 1c9095692b78b72990d399c5639d9400a42dcca3 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Fri, 3 Apr 2020 21:03:03 +0200 Subject: [PATCH] Loop root password if error --- archfi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archfi b/archfi index c895ffa..ba736d0 100644 --- a/archfi +++ b/archfi @@ -1165,7 +1165,11 @@ archsetrootpassword(){ } archsetrootpasswordchroot(){ echo "passwd root" - passwd root + passed=1 + while [[ ${passed} != 0 ]]; do + passwd root + passed=$? + done exit }