Change in osmo-dev[master]: ttcn3: prepare_local_bin: update respawn.sh path

osmith gerrit-no-reply at lists.osmocom.org
Wed Jun 2 18:34:45 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/24495 )

Change subject: ttcn3: prepare_local_bin: update respawn.sh path
......................................................................

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
---
M ttcn3/ttcn3.sh
1 file changed, 2 insertions(+), 5 deletions(-)

Approvals:
  osmith: Looks good to me, approved; Verified
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve



diff --git a/ttcn3/ttcn3.sh b/ttcn3/ttcn3.sh
index d76fb9c..f4888d3 100755
--- a/ttcn3/ttcn3.sh
+++ b/ttcn3/ttcn3.sh
@@ -144,7 +144,7 @@
 # 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 @@
 			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
 }
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/24495
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I497b9e8909a419f5b5286fcccce9d8a1ba9d515c
Gerrit-Change-Number: 24495
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210602/6cf21fd0/attachment.htm>


More information about the gerrit-log mailing list