Skip to content

Commit cc21026

Browse files
authored
Merge pull request #1397 from dotty-staging/fix/dotc-path
bin/common: make check_jar work outside of dotty root
2 parents fe36073 + 2064440 commit cc21026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fi
102102
function check_jar {
103103
# Usage:
104104
# check_jar "name" "path/to/package.jar" "sources/dir" 'lambda to exec on failure'
105-
local new_files="$(find "$3" \( -iname "*.scala" -o -iname "*.java" \) -newer "$2")"
105+
local new_files="$(find "$DOTTY_ROOT/$3" \( -iname "*.scala" -o -iname "*.java" \) -newer "$2")"
106106
if [ ! -z "$new_files" ]; then
107107
printf "New files detected in $1, rebuilding..."
108108
eval "$4"

0 commit comments

Comments
 (0)