mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
13 lines
202 B
Bash
13 lines
202 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if [ ! -d /data/capes ]; then
|
||
|
mkdir -p /data/capes
|
||
|
fi
|
||
|
|
||
|
if [ "$1" = "serve" ] || [ "$1" = "token" ] || [ "$1" = "version" ]; then
|
||
|
set -- /usr/local/bin/chrly "$@"
|
||
|
fi
|
||
|
|
||
|
exec "$@"
|