9 lines
339 B
Bash
Executable file
9 lines
339 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
|
if (($#>0)); then
|
|
docker run --rm -v $PWD:/home/her.esy.fun --expose=3000 --name her.esy.fun -it her.esy.fun /bin/sh -c "cd /home/her.esy.fun && nix-shell --run '$*'"
|
|
else
|
|
docker run --rm -v $PWD:/home/her.esy.fun --expose=3000 --name her.esy.fun -it her.esy.fun
|
|
fi
|