From 200855190fcf5ebb538b5ca30cceb2a904e7469b Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Sun, 29 Nov 2015 11:00:35 -0500 Subject: [PATCH] pentoo-system: thanks git -a for missing a file --- pentoo/pentoo-system/files/ungit | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 pentoo/pentoo-system/files/ungit 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