tracks/bin/rails
Jyri-Petteri Paloposki f395ee1266 Fix code style issues and the sender map logic to handle the empty pref case correctly.
Also fixed the rails script to use the correct directory always.
2022-02-22 22:52:28 +02:00

13 lines
337 B
Bash
Executable file

#!/bin/sh
# Absolute path to this script, e.g. /home/user/bin/foo.sh
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in, thus /home/user/bin
SCRIPTPATH=$(dirname "$SCRIPT")
if [ -e $SCRIPTPATH/../.use-docker -a ! -e /etc/app-env ];
then
$SCRIPTPATH/../script/docker-environment $0 "$@"
else
$SCRIPTPATH/run-rails "$@"
fi