Skip to content

Commit 84c075c

Browse files
authored
POSIX-compliant redirect
1 parent c930017 commit 84c075c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

assets/nix/run.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ for a in "$@"; do
9292
rotated=$((rotated+1))
9393
fi
9494
done
95-
echo 1>&2 "Please set executable_name to a valid name in a text editor"
95+
echo "Please set executable_name to a valid name in a text editor" 1>&2
9696
exit 1
9797
fi
9898
done
@@ -104,7 +104,7 @@ if [ -x "$1" ] ; then
104104
fi
105105

106106
if [ -z "${executable_name}" ] || [ ! -x "${executable_name}" ]; then
107-
echo 1>&2 "Please set executable_name to a valid name in a text editor or as the first command line parameter"
107+
echo "Please set executable_name to a valid name in a text editor or as the first command line parameter" 1>&2
108108
exit 1
109109
fi
110110

@@ -151,8 +151,8 @@ case ${os_type} in
151151
;;
152152
*)
153153
# alright whos running games on freebsd
154-
echo 1>&2 "Unknown operating system ($(uname -s))"
155-
echo 1>&2 "Make an issue at https://github.com/NeighTools/UnityDoorstop"
154+
echo "Unknown operating system ($(uname -s))" 1>&2
155+
echo "Make an issue at https://github.com/NeighTools/UnityDoorstop" 1>&2
156156
exit 1
157157
;;
158158
esac
@@ -190,10 +190,10 @@ case "${file_out}" in
190190
arch="x86"
191191
;;
192192
*)
193-
echo 1>&2 "The executable \"${executable_path}\" is not compiled for x86 or x64 (might be ARM?)"
194-
echo 1>&2 "If you think this is a mistake (or would like to encourage support for other architectures)"
195-
echo 1>&2 "Please make an issue at https://github.com/NeighTools/UnityDoorstop"
196-
echo 1>&2 "Got: ${file_out}"
193+
echo "The executable \"${executable_path}\" is not compiled for x86 or x64 (might be ARM?)" 1>&2
194+
echo "If you think this is a mistake (or would like to encourage support for other architectures)" 1>&2
195+
echo "Please make an issue at https://github.com/NeighTools/UnityDoorstop" 1>&2
196+
echo "Got: ${file_out}" 1>&2
197197
exit 1
198198
;;
199199
esac

0 commit comments

Comments
 (0)