diff options
author | Mariell Hoversholm <[email protected]> | 2021-03-16 19:31:27 +0100 |
---|---|---|
committer | Mariell Hoversholm <[email protected]> | 2021-03-18 18:03:22 +0100 |
commit | 376d7b0975c259d7a8739b179cf06105db81a2f1 (patch) | |
tree | 6b2f50159e2c7bb85b8e8ea4b6b2990eb5194bf3 | |
parent | fcb3fd42a71017ee7da4c5feaedae48748471b58 (diff) | |
download | Paper-376d7b0975c259d7a8739b179cf06105db81a2f1.tar.gz Paper-376d7b0975c259d7a8739b179cf06105db81a2f1.zip |
Don't remove the .java
-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 b9a7c50921..bab5462124 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 's/.*\/net\/minecraft\///g;s/\.java$//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') function containsElement { local e for e in "${@:2}"; do |