mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
buildsystem: replace printf with echo where able
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
@@ -93,9 +93,9 @@ function find_addons() {
|
||||
|
||||
# abort when nothing found and not embedded
|
||||
if [ $? -ne 0 ]; then
|
||||
printf "$(print_color CLR_ERROR "ERROR: '$1' matches nothing...")\n" ' '>&$SILENT_OUT
|
||||
printf "for more informations type: ./scripts/create_addon --help\n" ' '>&$SILENT_OUT
|
||||
exit 1
|
||||
echo "$(print_color CLR_ERROR "ERROR: '$1' matches nothing...")" >&$SILENT_OUT
|
||||
echo "for more informations type: ./scripts/create_addon --help" >&$SILENT_OUT
|
||||
die
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -297,13 +297,13 @@ for addon in $(tr " " "\n" <<< $addons | sort -u); do
|
||||
fi
|
||||
|
||||
# build package
|
||||
printf "$(print_color CLR_BUILD "CREATE ADDON $addon") (${DEVICE:-$PROJECT}/$TARGET_ARCH)\n" ' '>&$SILENT_OUT
|
||||
echo "$(print_color CLR_BUILD "CREATE ADDON $addon") (${DEVICE:-$PROJECT}/$TARGET_ARCH)" >&$SILENT_OUT
|
||||
_count+='x'
|
||||
( build_addon $addon ) \
|
||||
2>&1 | tee $log_file
|
||||
if [ ${PIPESTATUS[0]} != 0 ]; then
|
||||
addons_failed+="$addon "
|
||||
printf "$(print_color CLR_ERROR "ADDON FAILED $addon")\n" ' '>&$SILENT_OUT
|
||||
echo "$(print_color CLR_ERROR "ADDON FAILED $addon")" >&$SILENT_OUT
|
||||
echo "failed: ${addon}" >> $summary_file
|
||||
else
|
||||
if [ "$remove_success_logs" = "true" ]; then
|
||||
@@ -321,10 +321,9 @@ fi
|
||||
# print summary
|
||||
if [ "$_count" != 'x' ]; then
|
||||
if [ -z "$addons_failed" ]; then
|
||||
printf "$(print_color CLR_INFO "ALL ADDONS BUILDS SUCCESSFUL")\n"
|
||||
echo "$(print_color CLR_INFO "ALL ADDONS BUILDS SUCCESSFUL")"
|
||||
exit 0
|
||||
else
|
||||
printf "$(print_color CLR_ERROR "FAILED ADDONS: $addons_failed")\n"
|
||||
exit 1
|
||||
die "$(print_color CLR_ERROR "FAILED ADDONS: $addons_failed")"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user