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

osmith gerrit-no-reply at lists.osmocom.org
Tue Jun 1 11:38:53 UTC 2021


osmith has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/95/24495/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210601/7d727f9e/attachment.htm>


More information about the gerrit-log mailing list