Skip to content

Commit a710231

Browse files
committed
Update upload.sh
1 parent bfb7577 commit a710231

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

imageflow_core/tests/visuals/upload.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@ echo "You probably want to run aws configure first"
1515

1616
if command -v aws --version &> /dev/null; then
1717

18+
ANY_FAILED=0
1819
cd $(dirname "$0")
1920
while read -r line; do
2021
echo "Uploading $line"
2122
aws s3 cp ./"$line" s3://imageflow-resources/visual_test_checksums/
23+
if [ $? -ne 0 ]; then
24+
ANY_FAILED=1
25+
fi
2226
done < to_upload.txt
2327

24-
rm missing_on_s3.txt
28+
if [ $ANY_FAILED -eq 0 ]; then
29+
rm missing_on_s3.txt
30+
rm to_upload.txt
31+
fi
2532
else
26-
echo "aws not installed, try: sudo snap install aws-cli --classic"
33+
echo "aws not installed, try: sudo snap install aws-cli --classic then aws configure"
2734
exit 1
2835
fi

0 commit comments

Comments
 (0)