diff --git a/docker/run_docker_ost b/docker/run_docker_ost index c8f83be093b426203262d909dd366ddaa778adff..f7d14df286fd1970137b42f24d48fcc1cbd09ec3 100755 --- a/docker/run_docker_ost +++ b/docker/run_docker_ost @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # end when error set -e @@ -7,11 +7,11 @@ image_name=$1 script_path=$2 if [[ ${#@} -lt 1 ]]; then - echo "Usage: (sudo) run_docker_ost <IMAGE_NAME> [<SCRIPT_PATH>]" + echo "Usage: run_docker_ost <IMAGE_NAME> [<SCRIPT_PATH>]" exit 1 fi -if [[ ${script_path} -eq "" ]]; then +if [[ -z ${script_path} ]]; then docker run -ti --rm ${image_name} else abspath=$(readlink -f $script_path)