mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/image: reduce use of basename
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
29a3baee03
commit
3936c9e5ab
@ -187,7 +187,7 @@ if [ -d "${PROJECT_DIR}/${PROJECT}/filesystem" ]; then
|
||||
# Install project specific systemd services
|
||||
for service in ${PROJECT_DIR}/${PROJECT}/filesystem/usr/lib/systemd/system/*.service; do
|
||||
if [ -f "${service}" ]; then
|
||||
enable_service $(basename ${service})
|
||||
enable_service ${service##*/}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
@ -198,7 +198,7 @@ if [ -n "${DEVICE}" -a -d "${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/filesyste
|
||||
# Install device specific systemd services
|
||||
for service in ${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/filesystem/usr/lib/systemd/system/*.service; do
|
||||
if [ -f "${service}" ]; then
|
||||
enable_service $(basename ${service})
|
||||
enable_service ${service##*/}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user