mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
scripts/unpack: remove use of dirname and basename
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
9326345a6e
commit
c81efe884a
@ -158,7 +158,7 @@ if [ -d "${SOURCES}/${PKG_NAME}" -o -d "${PKG_DIR}/sources" ] || pkg_call_exists
|
||||
${PROJECT_DIR}/${PROJECT}/patches/${PKG_NAME}/${PKG_VERSION}/*.patch \
|
||||
${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/patches/${PKG_NAME}/*.patch; do
|
||||
|
||||
thisdir="$(dirname "${i}")"
|
||||
thisdir="${i%/*}"
|
||||
|
||||
if [ "${thisdir}" = "${PKG_DIR}/patches" ]; then
|
||||
PATCH_DESC="(common)"
|
||||
@ -178,11 +178,11 @@ if [ -d "${SOURCES}/${PKG_NAME}" -o -d "${PKG_DIR}/sources" ] || pkg_call_exists
|
||||
PATCH_DESC="(device)"
|
||||
else
|
||||
if [[ "${thisdir}" =~ ^${PKG_DIR}/.* ]]; then
|
||||
PATCH_DESC="(common - $(basename "${thisdir}"))"
|
||||
PATCH_DESC="(common - ${thisdir##*/})"
|
||||
elif [[ "${thisdir}" =~ ^${PROJECT_DIR}/.*/devices/.* ]]; then
|
||||
PATCH_DESC="(device - $(basename "${thisdir}"))"
|
||||
PATCH_DESC="(device - ${thisdir##*/})"
|
||||
elif [[ "${thisdir}" =~ ^${PROJECT_DIR}/.* ]]; then
|
||||
PATCH_DESC="(project - $(basename "${thisdir}"))"
|
||||
PATCH_DESC="(project - ${thisdir##*/})"
|
||||
else
|
||||
PATCH_DESC="(absolute - ${i})"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user