Skip to content

Commit

Permalink
Trying to get variables to work
Browse files Browse the repository at this point in the history
  • Loading branch information
underwoo committed Mar 12, 2020
1 parent ad999da commit 32f732b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

# Check for files that have trailing whitespace
/whitespace_check.sh | tee /tmp/ws.out
/whitespace_check.sh > /tmp/ws.out
ws_nfiles=$(wc -l /tmp/ws.out | awk '{print $1}')
if test $ws_nfiles -gt 0
then
Expand All @@ -27,7 +27,7 @@ then
fi

# Check for Fortran files with tabs
/ftn_tab_check.sh | tee /tmp/ftab.out
/ftn_tab_check.sh > /tmp/ftab.out
ftab_nfiles=$(wc -l /tmp/ftab.out | awk '{print $1}')
if test $ftab_nfiles -gt 0
then
Expand All @@ -39,7 +39,7 @@ fi
if test $ws_nfiles -gt 0 || test $ftab_nfiles -gt 0
then
echo "::set-output name=lintSuccess::false"
if test "$0" = "true"
if test "$1" = "true"
then
exit 1
fi
Expand Down

0 comments on commit 32f732b

Please sign in to comment.