From 2c8af55f390108a9cca51fb91c0d1e21e000f8e6 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 16 Jul 2021 00:37:50 -0300 Subject: aux/ci/: Run sh files with sh instead of ./ --- aux/ci/ci-build.sh | 2 +- aux/ci/git-post-receive.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/aux/ci/ci-build.sh b/aux/ci/ci-build.sh index 069f3df..f766d6a 100755 --- a/aux/ci/ci-build.sh +++ b/aux/ci/ci-build.sh @@ -50,7 +50,7 @@ EOF git annex get ||: if [ -f aux/guix/with-container.sh ]; then - RUNNER='./aux/guix/with-container.sh' + RUNNER='sh aux/guix/with-container.sh' else RUNNER='sh -c' fi diff --git a/aux/ci/git-post-receive.sh b/aux/ci/git-post-receive.sh index 855fd45..24f40ef 100755 --- a/aux/ci/git-post-receive.sh +++ b/aux/ci/git-post-receive.sh @@ -13,7 +13,8 @@ read -r _ SHA _ # oldrev newrev refname PROJECT="$(basename "$PWD" | cut -d. -f1)" # remove .git suffix LOGS_DIR="/opt/ci/$PROJECT/logs" -"/opt/ci/$PROJECT/ci-build.sh" "$PROJECT" "$LOGS_DIR" "$SHA" +sh "/opt/ci/$PROJECT/ci-build.sh" "$PROJECT" "$LOGS_DIR" "$SHA" echo 'To retrigger the build, run:' -echo "cd /srv/git/$PROJECT.git/ && sh /opt/ci/$PROJECT/ci-build.sh" "$PROJECT" "$LOGS_DIR" "$SHA" +echo "cd /srv/git/$PROJECT.git/" +echo "sh /opt/ci/$PROJECT/ci-build.sh" "$PROJECT" "$LOGS_DIR" "$SHA" -- cgit v1.2.3