Files

7 lines
306 B
Bash

rm -rf /root/practice-repo
[ -n "$(state_get had-gitconfig)" ] || rm -f /root/.gitconfig
if [ -n "$(state_get no-git)" ] && pkg_installed git; then
if is_rhel; then dnf -y -q remove git >/dev/null 2>&1; else DEBIAN_FRONTEND=noninteractive apt-get -y -qq --autoremove purge git >/dev/null 2>&1; fi
fi
true