Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit ae518bc

Browse files
authored
feat(chart): delete file after upload (SeleniumHQ#2117)
1 parent b9c8494 commit ae518bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/selenium-grid/configs/uploader/rclone/entry_point.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ do
2727
else [ "$FILE" != "" ] && [ "$DESTINATION" != "" ];
2828
echo "Uploading ${FILE} to ${DESTINATION}"
2929
rclone --config ${UPLOAD_CONFIG_DIRECTORY}/${UPLOAD_CONFIG_FILE_NAME} ${UPLOAD_COMMAND} ${UPLOAD_OPTS} "${FILE}" "${DESTINATION}"
30+
if [ $? -eq 0 ];
31+
then
32+
rm -rf $FILE
33+
fi
3034
fi
3135
if [ -f ${SE_VIDEO_FOLDER}/force_exit ] && [ ! -s ${SE_VIDEO_FOLDER}/uploadpipe ];
3236
then

0 commit comments

Comments
 (0)