Skip to content

Commit

Permalink
Merge pull request #15 from matyasselmeci/pr/update-osg-build
Browse files Browse the repository at this point in the history
Add update-osg-build: a script to update the version of osg-build in the running container
  • Loading branch information
matyasselmeci authored Sep 30, 2023
2 parents 8286bcd + d640f74 commit 54e9f1e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions update-osg-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

CONTAINER_NAME=osg-build

# only allocate a tty if stdin and stdout are both ttys.
# Allocating a tty causes piping issues (for example, the output side
# will contain CRLF line terminators instead of LF)
t=
[[ -t 0 && -t 1 ]] && t=-t

docker=docker
if command -v podman &>/dev/null; then
docker=podman
fi

$docker exec -i $t -u0 $CONTAINER_NAME \
sh -c 'cd /usr/local/src/osg-build && git pull --autostash --rebase && make -s install && echo ok'

0 comments on commit 54e9f1e

Please sign in to comment.