You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mscs/adjusting-world-server-properties/forge.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,14 +112,15 @@ sed -i "s|\"\$@|--nogui &|g" run.sh
112
112
sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt
113
113
```
114
114
115
-
<detailsmarkdown='span'>
115
+
<details>
116
116
<summary>Explanation of the sed commands</summary>
117
117
118
-
`sed -i "\|@[^\"]|s|@|@$(pwd)/|" run.sh`: This matches all occurences of `@` that aren't followed by `"` and adds the current directory followed by a / to it (or rather, replaces the `@` with an `@` followed by the current directory).
119
118
120
-
`sed -i "s|\"\$@|--nogui &|g" run.sh`: This adds `--nogui ` in front of `"$@`, with `&` being the matched pattern.
119
+
<spanmarkdown='span'>`sed -i "\|@[^\"]|s|@|@$(pwd)/|" run.sh`</span>: This matches all occurences of `@` that aren't followed by `"` and adds the current directory followed by a / to it (or rather, replaces the `@`with an `@` followed by the current directory).
121
120
122
-
`sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt`: This adds the current path to all occurences of the word libraries in the unix_args.txt file. Because the directory contains the forge version (for example `1.17.1-37.1.1`), `*` is used as a wildcard.
121
+
<spanmarkdown='span'>`sed -i "s|\"\$@|--nogui &|g" run.sh`</span>: This adds `--nogui ` in front of `"$@`, with `&` being the matched pattern.
122
+
123
+
<spanmarkdown='span'>`sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt`</span>: This adds the current path to all occurences of the word libraries in the unix_args.txt file. Because the directory contains the forge version (for example `1.17.1-37.1.1`), `*` is used as a wildcard.
0 commit comments