Skip to content

Commit f1bb590

Browse files
authored
Merge pull request #3586 from dotty-staging/fix-dotx-file-change-detection
Fix file change detection in dotc & dotr scripts
2 parents b662003 + 6735820 commit f1bb590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/common

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ shift # Mutates $@ by deleting the first element ($1)
1313
version="$ROOT/dist-bootstrapped/target/pack/VERSION"
1414

1515
# Create the target if absent or if file changed in ROOT/compiler
16-
new_files="$(find "$ROOT/compiler" \( -iname "*.scala" -o -iname "*.java" \) -newer "$version" >& /dev/null)"
16+
new_files="$(find "$ROOT/compiler" \( -iname "*.scala" -o -iname "*.java" \) -newer "$version" 2> /dev/null)"
1717

18-
if [ ! -f "$target" ] || [ ! -z "$new_files" ]; then
18+
if [ ! -f "$version" ] || [ ! -z "$new_files" ]; then
1919
echo "Building Dotty..."
2020
sbt "dist-bootstrapped/pack"
2121
fi

0 commit comments

Comments
 (0)