Skip to content

Commit 27252cb

Browse files
committed
controller: fix script compatibility with windows
1 parent 2f4d368 commit 27252cb

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

controller.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,11 @@ if [ ! -f "$SCRIPT_PATH" ]; then
2929
exit 1
3030
fi
3131

32-
CMD="$SCRIPT_PATH"
33-
OS=$(uname -s)
34-
if [[ "$OS" == "MINGW"* || "$OS" == "CYGWIN"* || "$OS" == "MSYS"* ]]; then
35-
CMD="winpty $CMD"
36-
fi
37-
3832
chmod +x "$SCRIPT_PATH"
39-
echo "----------------------"
33+
34+
echo "-------------------------"
4035
echo "Executing $SCRIPT_NAME..."
41-
"$CMD"
36+
bash "$SCRIPT_PATH"
4237

4338
if [ "$NO_CONFIRM" = false ]; then
4439
chmod +x "$SCRIPT_DIR/on_exit.sh"

0 commit comments

Comments
 (0)