gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 02/03: bootstrap: check for the shell builtin we use and exit i


From: gnunet
Subject: [gnunet] 02/03: bootstrap: check for the shell builtin we use and exit if it doesn't exist.
Date: Wed, 27 Nov 2019 22:59:19 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnunet.

commit cf267b6ac1f0e10f90716a490cc4d1e60aea5de8
Author: ng0 <address@hidden>
AuthorDate: Wed Nov 27 21:55:31 2019 +0000

    bootstrap: check for the shell builtin we use and exit if it doesn't
    exist.
---
 bootstrap | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/bootstrap b/bootstrap
index e2654d9bd..06a82ddfc 100755
--- a/bootstrap
+++ b/bootstrap
@@ -18,6 +18,17 @@ cleanup()
     rm -rf libltdl
 }
 
+errmsg=''
+
+# Check if shell supports builtin 'type'.
+if test -z "$errmsg"; then
+    if ! (eval 'type type') >/dev/null 2>&1
+    then
+        errmsg='Shell does not support type builtin'
+        exit 1
+    fi
+fi
+
 # This is more portable than `which' but comes with
 # the caveat of not(?) properly working on busybox's ash:
 existence()

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]