Skip to content

Commit 8c78868

Browse files
committed
Delete homedir
1 parent 21efd97 commit 8c78868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ RUN sudo pacman --noconfirm -Syyuu \
3939
&& pacman -Q | grep "\-debug" | cut -d ' ' -f 1 | xargs -r sudo pacman -Rs --noconfirm \
4040
&& sudo pacman -Scc --noconfirm \
4141
&& sudo rm -rf /tmp/* \
42-
&& sudo userdel -r -f ${user} \
43-
&& sudo rm -rf /home/${user}/build-root \
42+
&& sudo userdel -r -f ${user} || true \
43+
&& sudo rm -rf /home/${user}/ \
4444
&& sudo sed -i "/^%${user} ALL=(ALL) NOPASSWD: ALL$/d" /etc/sudoers

0 commit comments

Comments
 (0)