aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorMariell Hoversholm <[email protected]>2021-03-16 19:26:49 +0100
committerMariell Hoversholm <[email protected]>2021-03-16 19:26:49 +0100
commitaa3cd67b54f560951b696356554ae9dd4e58e027 (patch)
tree875adff7424a6a5974bebe0b38b0131c1f69eace /scripts
parente7ae17022f208e232e245b06e80fa0aecc1beab0 (diff)
downloadPaper-aa3cd67b54f560951b696356554ae9dd4e58e027.tar.gz
Paper-aa3cd67b54f560951b696356554ae9dd4e58e027.zip
Fix macOS/BSD support
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/importmcdev.sh2
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