Skip to content

Commit 12ae9a2

Browse files
authored
Do not remove /etc/pacman.d/mirrorlist if reflector fails
#258
1 parent 4ef3322 commit 12ae9a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

create-arch-bootstrap.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ fi
153153
rm "${bootstrap}"/etc/locale.gen
154154
mv locale.gen "${bootstrap}"/etc/locale.gen
155155

156-
rm "${bootstrap}"/etc/pacman.d/mirrorlist
157-
mv mirrorlist "${bootstrap}"/etc/pacman.d/mirrorlist
156+
if [ -f mirrorlist ]; then
157+
rm "${bootstrap}"/etc/pacman.d/mirrorlist
158+
mv mirrorlist "${bootstrap}"/etc/pacman.d/mirrorlist
159+
fi
158160

159161
{
160162
echo

0 commit comments

Comments
 (0)