Skip to content

Commit

Permalink
fix prediff to use supported bash syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Dec 16, 2024
1 parent 5fe45cb commit 3b7eb0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/chplcheck/PREDIFF
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

FLAGS="--enable-rule ConsecutiveDecls"\
" --enable-rule BoolLitInCondStatement"\
Expand All @@ -15,8 +15,7 @@ if [ -e $1.chplcheckopts ]; then
fi


$CHPL_HOME/tools/chplcheck/chplcheck \
$FLAGS $1.chpl &>>$2
$CHPL_HOME/tools/chplcheck/chplcheck $FLAGS $1.chpl >>$2 2>&1

if sed "s#$(pwd)/##" $2 >$2.tmp; then
mv $2.tmp $2
Expand Down

0 comments on commit 3b7eb0a

Please sign in to comment.