Fix ldid detection, some readme improvements

This commit is contained in:
opa334
2022-10-09 15:11:15 +02:00
parent 37dcff4fcd
commit 788a009d61
3 changed files with 10 additions and 6 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
if [ ! -d "./out" ]
@@ -17,9 +17,9 @@ then
fi
IS_PROCURSUS_LDID=0
LDID_OUTPUT=$(ldid)
case "procursus" in
*$LDID_OUTPUT*)
{ LDID_OUTPUT="$( { ldid; } 2>&1 1>&3 3>&- )"; } 3>&1;
case "$LDID_OUTPUT" in
*"procursus"*)
IS_PROCURSUS_LDID=1
;;
esac
+2
View File
@@ -0,0 +1,2 @@
{ LDID_OUTPUT="$( { ldid; } 2>&1 1>&3 3>&- )"; } 3>&1;
echo "aaa: $LDID_OUTPUT"