Skip to content

Commit

Permalink
build: use if-then to avoid non-zero return codes in bin/ packaging code
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Jan 23, 2017
1 parent 1590b0f commit 6699f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/package-bin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ ifeq ($(DUMP),)
install-bin-$(1): $(PKG_BUILD_DIR)/.pkgdir/$(1).installed
rm -rf $(BIN_DIR)/$(1)
-rmdir $(PKG_BUILD_DIR)/.pkgdir/$(1) >/dev/null 2>/dev/null
[ -d $(PKG_BUILD_DIR)/.pkgdir/$(1) ] && { \
if [ -d $(PKG_BUILD_DIR)/.pkgdir/$(1) ]; then \
$(INSTALL_DIR) $(BIN_DIR)/$(1) && \
$(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/; \
}
fi

clean-$(1):
rm -rf $(BIN_DIR)/$(1)
Expand Down

0 comments on commit 6699f58

Please sign in to comment.