From 5b97d4cca66f92a38b543a681059c01bfb438204 Mon Sep 17 00:00:00 2001 From: Rafal Gumienny <guma44@gmail.com> Date: Mon, 26 Feb 2018 14:22:52 +0100 Subject: [PATCH] fix: SCHWED-3096 Check properly for the variable initialization --- docker/run_docker_ost | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/run_docker_ost b/docker/run_docker_ost index c8f83be09..f7d14df28 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) -- GitLab