diff --git a/pentoo/pentoo-system/files/ungit b/pentoo/pentoo-system/files/ungit new file mode 100755 index 000000000..6ce69ca6b --- /dev/null +++ b/pentoo/pentoo-system/files/ungit @@ -0,0 +1,8 @@ +#!/bin/sh +PORTDIR=$(portageq get_repo_path 2> /dev/null) +if [ -z "${PORTDIR}" ]; then + PORTDIR=$(portageq envvar PORTDIR 2> /dev/null) +fi +if [ -d "${PORTDIR}"/.git ]; then + rm -rf "${PORTDIR}"/.git +fi