diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2017-09-06 16:32:03 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2017-09-06 16:32:03 +0200 |
commit | 90afa29f821b263e5070fdc30d7096519720d017 (patch) | |
tree | 65ea725a800dcc338b9ea1630b56faff359b7ede /subr/pkg_install_pre.subr | |
parent | 378facbd9fd64c357a7a38c0130893e3b807ff71 (diff) | |
download | midipix_build-90afa29f821b263e5070fdc30d7096519720d017.tar.bz2 midipix_build-90afa29f821b263e5070fdc30d7096519720d017.tar.xz |
subr/pkg_{install_pre,strip}.subr: always check for -e ${...}.
Diffstat (limited to 'subr/pkg_install_pre.subr')
-rw-r--r-- | subr/pkg_install_pre.subr | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/subr/pkg_install_pre.subr b/subr/pkg_install_pre.subr index f2273ba4..7ab8a9e2 100644 --- a/subr/pkg_install_pre.subr +++ b/subr/pkg_install_pre.subr @@ -4,10 +4,12 @@ pkg_install_pre() { if [ "${PKG_NAME%flavour_minipix}" != "${PKG_NAME}" ] \ - && [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ]; then + && [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ] \ + && [ -e "${PREFIX_MINIPIX}" ]; then find "${PREFIX_MINIPIX}" -perm /a=x \ \( -type f -or -type l \) > "${WORKDIR}/.stat_minipix.old"; - elif [ "${BUILD}" = release ]; then + elif [ "${BUILD}" = release ] \ + && [ -e "${PREFIX_NATIVE}/bin" ]; then find "${PREFIX_NATIVE}/bin" -perm /a=x \ \( -type f -or -type l \) > "${WORKDIR}/.stat_native.old"; fi; |