Skip to content

Commit 3299351

Browse files
committed
Ignore List Errors
1 parent c081c0d commit 3299351

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ runs:
201201
echo -e "Use a custom kernel compilation template..."
202202
rm -f ${config_filepath}/* 2>/dev/null && sync
203203
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)"
205205
else
206206
echo -e "The custom kernel compilation template path is invalid, continue to use the default template."
207207
fi
@@ -216,7 +216,7 @@ runs:
216216
echo -e "Use custom kernel patches..."
217217
rm -rf ${custom_kernel_patch}/* 2>/dev/null && sync
218218
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)"
220220
else
221221
echo -e "Invalid custom kernel patch directory, skipping."
222222
fi
@@ -238,7 +238,7 @@ runs:
238238
sudo ./recompile ${make_command}
239239
240240
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 "[ ]" "_")"
242242
echo -e "Output environment variables."
243243
echo "PACKAGED_OUTPUTTAGS=${output_tags}" >> ${GITHUB_ENV}
244244
echo "PACKAGED_OUTPUTPATH=${PWD}/${kernel_outpath}" >> ${GITHUB_ENV}

0 commit comments

Comments
 (0)