diff options
Diffstat (limited to 'subr/pkg_strip.subr')
-rw-r--r-- | subr/pkg_strip.subr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subr/pkg_strip.subr b/subr/pkg_strip.subr index e0b2bf12..9f6ce31f 100644 --- a/subr/pkg_strip.subr +++ b/subr/pkg_strip.subr @@ -5,7 +5,8 @@ pkgp_strip_tree() { local _tree_old="${1}" _tree_root="${2}"; local _tree_new="${_tree_old%.*}.new" _tree_diff="${_tree_old%.*}.diff"; - if [ ! -e "${_tree_old}" ]; then + if [ ! -e "${_tree_old}" ] \ + || [ ! -e "${_tree_root}" ]; then return; fi; find "${_tree_root}" -perm /a=x \( -type f -or -type l \) > "${_tree_new}"; |