Skip to content

Commit 2d09eae

Browse files
committed
run.sh: formatting cleanup
1 parent 851712b commit 2d09eae

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

assets/nix/run.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/sh
22
# Doorstop start script
3-
#
3+
#
44
# Run the script to start the game with Doorstop enabled
55
#
66
# There are two ways to use this script
77
#
88
# 1. Via CLI: Run ./run.sh <path to game> [doorstop arguments] [game arguments]
99
# 2. Via config: edit the options below and run ./run.sh without any arguments
1010

11-
# 0 is false, 1 is true
12-
1311
# LINUX: name of Unity executable
1412
# MACOS: name of the .app directory
1513
executable_name=""
@@ -19,6 +17,7 @@ executable_name=""
1917
# General Config Options
2018

2119
# Enable Doorstop?
20+
# 0 is false, 1 is true
2221
enabled="1"
2322

2423
# Path to the assembly to load and execute
@@ -135,7 +134,7 @@ abs_path() {
135134
}
136135

137136
_readlink() {
138-
# relative links with readlink (without -f) do not preserve the path info
137+
# relative links with readlink (without -f) do not preserve the path info
139138
ab_path="$(abs_path "$1")"
140139
link="$(readlink "${ab_path}")"
141140
case $link in
@@ -145,11 +144,10 @@ _readlink() {
145144
echo "$link"
146145
}
147146

148-
149147
resolve_executable_path () {
150148
e_path="$(abs_path "$1")"
151-
152-
while [ -L "${e_path}" ]; do
149+
150+
while [ -L "${e_path}" ]; do
153151
e_path=$(_readlink "${e_path}");
154152
done
155153
echo "${e_path}"

0 commit comments

Comments
 (0)