modeld: fix bash scripts (#29643)

Fix shebang. Fix LD_PRELOAD
old-commit-hash: a4a0429fca82a79118238695a04d888498ca0376
This commit is contained in:
Kacper Rączy
2023-08-25 18:56:06 -07:00
committed by GitHub
parent 68dd600872
commit d254137f4c
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
+5 -2
View File
@@ -1,7 +1,10 @@
#!/bin/sh
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd "$DIR/../../"
export LD_PRELOAD="$DIR/libthneed.so"
if [ -f "$DIR/libthneed.so" ]; then
export LD_PRELOAD="$DIR/libthneed.so"
fi
exec "$DIR/modeld.py"
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR