[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: TESTING: Fix shebang in netjail scripts
From: |
gnunet |
Subject: |
[gnunet] branch master updated: TESTING: Fix shebang in netjail scripts |
Date: |
Sat, 07 Jan 2023 03:04:22 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 460566764 TESTING: Fix shebang in netjail scripts
460566764 is described below
commit 46056676440a0f6d100169f780d6b9ecf960a56f
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sat Jan 7 11:03:25 2023 +0900
TESTING: Fix shebang in netjail scripts
Bashisms are used in netjail scripts for better or worse.
But the sheband /bin/sh was wrong to use in that case.
---
contrib/netjail/netjail_core.sh | 4 ++--
contrib/netjail/netjail_exec.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/netjail/netjail_core.sh b/contrib/netjail/netjail_core.sh
index 5e4fb39f1..8c1744853 100755
--- a/contrib/netjail/netjail_core.sh
+++ b/contrib/netjail/netjail_core.sh
@@ -1,5 +1,5 @@
-#!/bin/sh
-#
+#!/bin/bash
+#
PREFIX=${PPID:?must run from a parent process}
diff --git a/contrib/netjail/netjail_exec.sh b/contrib/netjail/netjail_exec.sh
index a08f7324b..34edf56bf 100755
--- a/contrib/netjail/netjail_exec.sh
+++ b/contrib/netjail/netjail_exec.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
. "$(dirname $0)/netjail_core.sh"
set -eu
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: TESTING: Fix shebang in netjail scripts,
gnunet <=