tools/repo-tool: fix test for projects with devices

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2017-09-26 10:25:04 +02:00
parent 195c4b164e
commit dae7aef737

View File

@ -69,7 +69,7 @@ update_addons_xml() {
touch_addons_xml() {
for PROJECT in $(ls -1 projects); do
if [ -p "$projects/$PROJECT/devices" ]; then
if [ -d "projects/$PROJECT/devices" ]; then
for DEVICE in $(ls -1 projects/$PROJECT/devices); do
for archfile in projects/$PROJECT/devices/$DEVICE/linux/linux.*.conf; do
ARCH=`echo $archfile | sed -n '$s/\.conf//;$s/.*\.//p'`