Skip to content

Commit

Permalink
fixed set -e
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaranionjc committed Sep 22, 2023
1 parent 1b8bb0c commit ce57700
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@ mkdir /tmp/$TempFolder
cd /tmp/$TempFolder
# Download Sentinel One file
if curl -o "$filename" "$DownloadURL"; then
echo "Download successful"
else
# Catch block
echo "Error: Failed to download file"
exit 1
fi
curl --fail -o "$filename" "$DownloadURL"
DownloadFile="$(ls)"
echo "Downloaded $DownloadFile to /tmp/$TempFolder"
Expand Down

0 comments on commit ce57700

Please sign in to comment.