mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
13 lines
332 B
Bash
Executable file
13 lines
332 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
|
|
bundle exec rake "$@"
|
|
fi
|