Skip to content

Commit

Permalink
feat: improve chmod error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
shizhx committed Nov 28, 2022
1 parent 50006f5 commit 490994a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ PATCHED_LIB="liblog_patched.so"


READELF="${MODPATH}/toybox-aarch64 readelf"
chmod a+x "${MODPATH}/toybox-aarch64"
if ! chmod a+x "${MODPATH}/toybox-aarch64"; then
abort "Failed to chmod a+x ${MODPATH}/toybox-aarch64"
fi

# copy to TMPDIR
if ! cp -f "${TARGET_DIR}/${TARGET_LIB}" "${TMPDIR}/${TARGET_LIB}"; then
Expand Down

0 comments on commit 490994a

Please sign in to comment.