diff options
author | arehbein <arehbein@sysmocom.de> | 2023-01-07 20:58:20 +0100 |
---|---|---|
committer | arehbein <arehbein@sysmocom.de> | 2023-09-26 23:27:16 +0200 |
commit | dcd7f09cf398491cb398cdb59a9e9af171853079 (patch) | |
tree | 277fb7da6c9addbf5fcee7e90f3a34a6b1b33b82 | |
parent | 6336ce15df3136dbbd5b1c576a3425bf63ea31ae (diff) |
srcipts/docker-playground_adapt: Fix script
- Fix help text
- Don't exit when restoring outside of Dockerfile directory
Change-Id: I9c6ecb2da639e36221f175a8b6f3d58c0c3ab3e7
-rwxr-xr-x | scripts/docker-playground_adapt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/docker-playground_adapt b/scripts/docker-playground_adapt index f4a5ee9..ee32dd8 100755 --- a/scripts/docker-playground_adapt +++ b/scripts/docker-playground_adapt @@ -9,7 +9,7 @@ usage () { USAGE_STR="${USAGE_STR} -b, --branch Point to branch BRANCH of osmo-ttcn3-hacks repo.\n" USAGE_STR="${USAGE_STR} -l, --list-files List target files that will be changed/restored.\n" USAGE_STR="${USAGE_STR} -n, --no-prompt Don't prompt for changes.\n" - USAGE_STR="${USAGE_STR} -a, --append Don't prompt for changes.\n" + USAGE_STR="${USAGE_STR} -a, --append Append testcase to existing list of testcases.\n" USAGE_STR="${USAGE_STR} -t, --testcases Give testcase(s) to run in TESTSUITE. Will prompt for files to manipulate since there are subdirectories sometimes with alternative config files\n" USAGE_STR="${USAGE_STR} Will not prompt for anything, if docker-playground repository subdirectory SUBDIR with the TTCN3 testconfig is given\n" USAGE_STR="${USAGE_STR} Example:\n" @@ -156,9 +156,9 @@ RESTORE_ERR=0 if [ -n "$BRANCH_OPT" ]; then DOCKERFILE="./Dockerfile" if ! [ -f "$DOCKERFILE" ]; then - echo "No file $DOCKERFILE found" >&2 - echo "Try to run this in a docker-playground subdirectory with a Dockerfile" >&2 - exit 1 + echo "No file $DOCKERFILE found" + echo "You might want to try to run this in a docker-playground subdirectory with a Dockerfile" + DOCKERFILE="" fi # Files in which to put branch name |