Skip to content

Commit abd053f

Browse files
akosyakovjeanp413
authored andcommitted
[build] add missing shell scripts
1 parent e024d67 commit abd053f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

resources/gitpod/bin/code.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ "$OSTYPE" == "darwin"* ]]; then
4+
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
5+
ROOT=$(dirname "$(realpath "$0")")
6+
else
7+
ROOT=$(dirname "$(readlink -f $0)")
8+
fi
9+
10+
exec $ROOT/../node $ROOT/../out/server-cli.js "$@"

resources/gitpod/server.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ "$OSTYPE" == "darwin"* ]]; then
4+
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
5+
ROOT=$(dirname "$(realpath "$0")")
6+
else
7+
ROOT=$(dirname "$(readlink -f $0)")
8+
fi
9+
10+
PATH=$ROOT/bin:$PATH
11+
exec $ROOT/node $ROOT/out/server.js "$@"

0 commit comments

Comments
 (0)