ttcn3: prepare_local_bin: update respawn.sh path

Make logic to install the file simpler while at it, and allow it to
create /usr/local/bin if it doesn't exist (I just had that).

Change-Id: I497b9e8909a419f5b5286fcccce9d8a1ba9d515c
This commit is contained in:
Oliver Smith 2021-06-01 13:29:56 +02:00
parent 710107a459
commit 7531cea612
1 changed files with 2 additions and 5 deletions

View File

@ -144,7 +144,7 @@ check_dir_testsuite() {
# inside the docker container
prepare_local_bin() {
local scripts="
${DIR_OSMODEV}/src/docker-playground/osmo-bts-master/respawn.sh
${DIR_OSMODEV}/src/docker-playground/common/respawn.sh
"
for script in $scripts; do
@ -153,10 +153,7 @@ prepare_local_bin() {
continue
fi
set -x
sudo cp "$script" "$script_path_localbin"
sudo chmod +x /usr/local/bin/respawn.sh
set +x
install -v -Dm755 "$script" "$script_path_localbin"
done
}