pentoo-system: thanks git -a for missing a file

This commit is contained in:
Rick Farina (Zero_Chaos) 2015-11-29 11:00:35 -05:00
parent f77abaf19b
commit 200855190f

View file

@ -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