diff options
Diffstat (limited to 'vars/gdb.vars')
-rw-r--r-- | vars/gdb.vars | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vars/gdb.vars b/vars/gdb.vars index 595db375..1c8e5326 100644 --- a/vars/gdb.vars +++ b/vars/gdb.vars @@ -4,8 +4,9 @@ pkg_gdb_configure_patch_post() { local _overlay_dname="${BUILD_WORKDIR}/chainport/overlay/m${PKG_NAME%%_*}"; - if [ -d "${_overlay_dname}" ]; then - tar -C "${_overlay_dname}" -cpf - . | tar -C "${PKG_BASE_DIR}/${PKG_SUBDIR}" -xpf -; + if [ -d "${_overlay_dname}" ]\ + && ! tar -C "${_overlay_dname}" -cpf - . | tar -C "${PKG_BASE_DIR}/${PKG_SUBDIR}" -xpf -; then + return 1; fi; }; @@ -17,4 +18,4 @@ pkg_gdb_minipix_configure_patch_post() { pkg_gdb_configure_patch_post "${@}"; }; -# vim:filetype=sh +# vim:filetype=sh textwidth=0 |