Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
/zerothPublic archive

Commit424ac93

Browse files
committed
Modified to check whether file exists before downloading
1 parent7d4cbbc commit424ac93

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎s5/local/download_and_untar.sh‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ AUDIOINFO='AUDIO_INFO'
2727
AUDIOLIST=$2
2828
bucketname="zeroth-opensource"
2929
# download audio info file
30-
aws s3 cp s3://$bucketname/$AUDIOINFO$data/$AUDIOINFO
31-
success=$(echo$?)
32-
if [$success-ne 0 ];then
33-
echo"Download from AWS is failed, check your credential and configure your aws CLI"
34-
exit 1
30+
if [!-f$data/$AUDIOINFO ];then
31+
aws s3 cp s3://$bucketname/$AUDIOINFO$data/$AUDIOINFO
32+
success=$(echo$?)
33+
if [$success-ne 0 ];then
34+
echo"Download from AWS is failed, check your credential and configure your aws CLI"
35+
exit 1
36+
fi
3537
fi
3638

3739
# download Audio

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp