-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathfreyr.sh
More file actions
executable file
·23 lines (20 loc) · 882 Bytes
/
freyr.sh
File metadata and controls
executable file
·23 lines (20 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
if [ "$DOCKER_DESKTOP" = "true" ]; then
COLS=$(stty size 2>&- | cut -d" " -f2)
(
echo
echo
echo
echo "┌────────────────────────────────────────────────────────────┐"
echo "│ You are running freyr from inside Docker Desktop │"
echo "│ Click on the CLI button at the top right to access a CLI │"
echo "└────────────────────────────────────────────────────────────┘"
) | (
while read -r line; do
printf "%*s" "$(((COLS - ${#line}) / 2))" ""
echo "$line"
done
)
tail -f /dev/null
fi
node "${FREYR_NODE_ARGS[@]}" -- "$(dirname "$0")"/cli.js "$@"