summaryrefslogtreecommitdiffhomepage
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-18 18:03:22 +0100
commitfcb3fd42a71017ee7da4c5feaedae48748471b58 (patch)
tree19337df0b1c1695ac1aa496cc5433e73277c8896 /scripts
parent8cfc0524975205863fd5902d974c27bb11b39abf (diff)
downloadPaper-fcb3fd42a71017ee7da4c5feaedae48748471b58.tar.gz
Paper-fcb3fd42a71017ee7da4c5feaedae48748471b58.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