diff options
author | Mariell Hoversholm <[email protected]> | 2021-03-16 19:26:49 +0100 |
---|---|---|
committer | Mariell Hoversholm <[email protected]> | 2021-03-16 19:26:49 +0100 |
commit | aa3cd67b54f560951b696356554ae9dd4e58e027 (patch) | |
tree | 875adff7424a6a5974bebe0b38b0131c1f69eace /scripts | |
parent | e7ae17022f208e232e245b06e80fa0aecc1beab0 (diff) | |
download | Paper-aa3cd67b54f560951b696356554ae9dd4e58e027.tar.gz Paper-aa3cd67b54f560951b696356554ae9dd4e58e027.zip |
Fix macOS/BSD support
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/importmcdev.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/importmcdev.sh b/scripts/importmcdev.sh index c3f949a487..b9a7c50921 100755 --- a/scripts/importmcdev.sh +++ b/scripts/importmcdev.sh @@ -63,7 +63,7 @@ function importLibrary { files=$(cat "$basedir/Spigot-Server-Patches/"* | grep "+++ b/src/main/java/net/minecraft/" | sort | uniq | sed 's/\+\+\+ b\/src\/main\/java\/net\/minecraft\///g') -nonnms=$(grep -R "new file mode" -B 1 "$basedir/Spigot-Server-Patches/" | grep -v "new file mode" | grep -oE "net\/minecraft\/**\/.*.java" | sed -E 's/.*\/net\/minecraft\/(.*)/\1/g') +nonnms=$(grep -R "new file mode" -B 1 "$basedir/Spigot-Server-Patches/" | grep -v "new file mode" | grep -oE "net\/minecraft\/**\/.*.java" | sed 's/.*\/net\/minecraft\///g;s/\.java$//g') function containsElement { local e for e in "${@:2}"; do |