Skip to content

Commit

Permalink
Avoid exiting if the optimize command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Asur committed Nov 27, 2019
1 parent fb299c7 commit c3a45c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ function skip() {
for file in $(find ${INPUT_ROOT} -name "*.html"); do
[ -f "$file" ] || break
print_info "Optimizing $file"
$GOPATH/bin/transform $file > /tmp/optimized.txt
! $GOPATH/bin/transform $file > /tmp/optimized.txt
[ -s /tmp/optimized.txt ] && cat /tmp/optimized.txt > $file || print_error "Not a valid AMP page. Omitting..."
done

0 comments on commit c3a45c4

Please sign in to comment.