Create initial top-level run script
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 128 after 1 second
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 128 after 1 second
This commit is contained in:
parent
9487bb4a1c
commit
8f06292c41
1 changed files with 25 additions and 0 deletions
25
src/run.sh
Normal file
25
src/run.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ "${EUID}" -ne 0 ]]; then
|
||||||
|
echo "This script must be run as root." >&2;
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
###
|
||||||
|
# Load the lantern build engine
|
||||||
|
###
|
||||||
|
|
||||||
|
# Make sure the current directory is the location of this script to simplify matters
|
||||||
|
cd "$(dirname "$(readlink -f "$0")")" || { echo "Error: Failed to cd to script directory" >&2; exit 1; };
|
||||||
|
|
||||||
|
lantern_path="lib/lantern-build-engine/";
|
||||||
|
|
||||||
|
# Check out the lantern git submodule if needed
|
||||||
|
if [ ! -f "${lantern_path}/lantern.sh" ]; then git submodule update --init "${lantern_path}"; fi
|
||||||
|
|
||||||
|
#shellcheck disable=SC1090
|
||||||
|
source "${lantern_path}/lantern.sh";
|
||||||
|
|
||||||
|
###############################################################################
|
Loading…
Reference in a new issue