@@ -201,7 +201,7 @@ runs:
201
201
echo -e "Use a custom kernel compilation template..."
202
202
rm -f ${config_filepath}/* 2>/dev/null && sync
203
203
cp -vf ${GITHUB_WORKSPACE}/${{ inputs.kernel_config }}/config-* ${config_filepath}/ 2>/dev/null && sync
204
- echo -e "List of Kernel Custom Compilation Configuration Templates: \n$(ls -lh ${config_filepath})"
204
+ echo -e "List of Kernel Custom Compilation Configuration Templates: \n$(ls -lh ${config_filepath} 2>/dev/null )"
205
205
else
206
206
echo -e "The custom kernel compilation template path is invalid, continue to use the default template."
207
207
fi
@@ -216,7 +216,7 @@ runs:
216
216
echo -e "Use custom kernel patches..."
217
217
rm -rf ${custom_kernel_patch}/* 2>/dev/null && sync
218
218
cp -vrf ${GITHUB_WORKSPACE}/${{ inputs.kernel_patch }}/* -t ${custom_kernel_patch} && sync
219
- echo -e "Directory of custom kernel patches: \n$(ls -lh ${custom_kernel_patch})"
219
+ echo -e "Directory of custom kernel patches: \n$(ls -lh ${custom_kernel_patch} 2>/dev/null )"
220
220
else
221
221
echo -e "Invalid custom kernel patch directory, skipping."
222
222
fi
@@ -238,7 +238,7 @@ runs:
238
238
sudo ./recompile ${make_command}
239
239
240
240
cd ${{ github.action_path }}
241
- output_tags="$(ls -l ${PWD}/${kernel_outpath}/*.tar.gz | awk '{print $9}' | grep -oE '[1-9][0-9]{0,2}\.[0-9]{1,3}\.[0-9]+' | xargs | tr "[ ]" "_")"
241
+ output_tags="$(ls -l ${PWD}/${kernel_outpath}/*.tar.gz 2>/dev/null | awk '{print $9}' | grep -oE '[1-9][0-9]{0,2}\.[0-9]{1,3}\.[0-9]+' | xargs | tr "[ ]" "_")"
242
242
echo -e "Output environment variables."
243
243
echo "PACKAGED_OUTPUTTAGS=${output_tags}" >> ${GITHUB_ENV}
244
244
echo "PACKAGED_OUTPUTPATH=${PWD}/${kernel_outpath}" >> ${GITHUB_ENV}
0 commit comments