Skip to content
Snippets Groups Projects
Commit 5b97d4cc authored by Rafal Gumienny's avatar Rafal Gumienny
Browse files

fix: SCHWED-3096 Check properly for the variable initialization

parent 8192ba5e
Branches
Tags
No related merge requests found
#! /bin/bash #!/bin/bash
# end when error # end when error
set -e set -e
...@@ -7,11 +7,11 @@ image_name=$1 ...@@ -7,11 +7,11 @@ image_name=$1
script_path=$2 script_path=$2
if [[ ${#@} -lt 1 ]]; then 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 exit 1
fi fi
if [[ ${script_path} -eq "" ]]; then if [[ -z ${script_path} ]]; then
docker run -ti --rm ${image_name} docker run -ti --rm ${image_name}
else else
abspath=$(readlink -f $script_path) abspath=$(readlink -f $script_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment