* otherwise it shows error about failing import
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
clean_cache
echo "Exporting LOCALCOUNT to AUTOINCs..."
bitbake -R conf/migrate_localcount.conf -p
- [ ! $? -eq 0 ] && echo "Exporting failed!" && exit 1
+ [ ! $? -eq 0 ] && echo "Exporting to file $df failed!" && exit 1
+ if [ -e $df ];
+ then
+ echo "Exporting to file $df succeeded!"
+ else
+ echo "Exporting to file $df failed!"
+ exit 1
+ fi
+
echo "Importing generated AUTOINC entries..."
[ -e $df ] && do_import $df