diff options
author | David Seifert <soap@gentoo.org> | 2022-02-01 19:23:12 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-02-01 19:23:12 +0100 |
commit | 4894fba4c7869d2642986da360d41e5760facb9a (patch) | |
tree | 0b6b4e8a99b5dca0afb56b297f4cade4a315c41e /eclass/vcs-clean.eclass | |
parent | vcs-clean.eclass: enable EAPI 8 (diff) | |
download | gentoo-4894fba4c7869d2642986da360d41e5760facb9a.tar.gz gentoo-4894fba4c7869d2642986da360d41e5760facb9a.tar.bz2 gentoo-4894fba4c7869d2642986da360d41e5760facb9a.zip |
vcs-clean.eclass: add missing die
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/vcs-clean.eclass')
-rw-r--r-- | eclass/vcs-clean.eclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/vcs-clean.eclass b/eclass/vcs-clean.eclass index 991f680582f4..e4c61ac7164a 100644 --- a/eclass/vcs-clean.eclass +++ b/eclass/vcs-clean.eclass @@ -23,9 +23,11 @@ _VCS_CLEAN_ECLASS=1 # Remove CVS directories and .cvs* files recursively. Useful when a # source tarball contains internal CVS directories. Defaults to ${PWD}. ecvs_clean() { + debug-print-function ${FUNCNAME} "${@}" + [[ $# -eq 0 ]] && set -- . find "$@" '(' -type d -name 'CVS' -prune -o -type f -name '.cvs*' ')' \ - -exec rm -rf '{}' + + -exec rm -rf '{}' + || die } # @FUNCTION: esvn_clean @@ -34,8 +36,10 @@ ecvs_clean() { # Remove .svn directories recursively. Useful when a source tarball # contains internal Subversion directories. Defaults to ${PWD}. esvn_clean() { + debug-print-function ${FUNCNAME} "${@}" + [[ $# -eq 0 ]] && set -- . - find "$@" -type d -name '.svn' -prune -exec rm -rf '{}' + + find "$@" -type d -name '.svn' -prune -exec rm -rf '{}' + || die } # @FUNCTION: egit_clean @@ -44,8 +48,10 @@ esvn_clean() { # Remove .git* directories recursively. Useful when a source tarball # contains internal Git directories. Defaults to ${PWD}. egit_clean() { + debug-print-function ${FUNCNAME} "${@}" + [[ $# -eq 0 ]] && set -- . - find "$@" -type d -name '.git*' -prune -exec rm -rf '{}' + + find "$@" -type d -name '.git*' -prune -exec rm -rf '{}' + || die } fi |