Commit 6291407f authored by nimrod's avatar nimrod
Browse files

If the image name isn't specified, use the same name as created by docker Build.

parent 96f057af
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
#!/bin/sh
set -eu
if [ "$#" -eq '0' ]
then
    exec docker run --rm -Pitv "$PWD:/volume" "$(basename "$PWD" | awk "{print tolower(\$0)}" )"
else
    exec docker run --rm -Pitv "$PWD:/volume" "$@"
fi