mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
pentoo-system: thanks git -a for missing a file
This commit is contained in:
parent
f77abaf19b
commit
200855190f
1 changed files with 8 additions and 0 deletions
8
pentoo/pentoo-system/files/ungit
Executable file
8
pentoo/pentoo-system/files/ungit
Executable 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
|
||||
Loading…
Reference in a new issue