We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb7577 commit a710231Copy full SHA for a710231
imageflow_core/tests/visuals/upload.sh
@@ -15,14 +15,21 @@ echo "You probably want to run aws configure first"
15
16
if command -v aws --version &> /dev/null; then
17
18
+ ANY_FAILED=0
19
cd $(dirname "$0")
20
while read -r line; do
21
echo "Uploading $line"
22
aws s3 cp ./"$line" s3://imageflow-resources/visual_test_checksums/
23
+ if [ $? -ne 0 ]; then
24
+ ANY_FAILED=1
25
+ fi
26
done < to_upload.txt
27
- rm missing_on_s3.txt
28
+ if [ $ANY_FAILED -eq 0 ]; then
29
+ rm missing_on_s3.txt
30
+ rm to_upload.txt
31
32
else
- 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"
34
exit 1
35
fi
0 commit comments