dib-run-parts was failing with empty targets.

When the target directory is empty, the for loop printing our profile
data was failing because of a glob problem.

Change-Id: I34e612021c70d6b8f75423de0d8be969c52e58e2
This commit is contained in:
Lucas Alvares Gomes 2013-06-12 15:06:37 +01:00
parent f17e169f69
commit 4e428c6844

View File

@ -67,7 +67,7 @@ printf "%-40s %9s\n" Script Seconds
printf "%-40s %9s\n" --------------------------------------- ---------- printf "%-40s %9s\n" --------------------------------------- ----------
echo "" echo ""
pushd $PROFILE_DIR > /dev/null pushd $PROFILE_DIR > /dev/null
for target in start_* ; do for target in $(find . -name 'start_*' -printf '%f\n') ; do
stop_file=stop_${target##start_} stop_file=stop_${target##start_}
start_seconds=$(cat $target) start_seconds=$(cat $target)
stop_seconds=$(cat $stop_file) stop_seconds=$(cat $stop_file)