Skip to content

Commit

Permalink
Fix: Moved Set Error Exit to After Finding Files in a Certain Directory
Browse files Browse the repository at this point in the history
The Finding Files function was returning an error; therefore, set the error breaking after it instead of in the beginning of the file
  • Loading branch information
nizarmah committed Apr 21, 2020
1 parent e7bfe33 commit 6994822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash -l

set -e

output_name () {
: '
arguments:
Expand Down Expand Up @@ -110,6 +108,8 @@ fi
js_files=$( find_files 'js' )
css_files=$( find_files 'css' )

set -e

for file in $js_files; do
minify_file $file
done
Expand Down

0 comments on commit 6994822

Please sign in to comment.