It is convenient to be able to invoke those two during development
too, just like mkosi itself.
set -e
PYTHONPATH="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")"
export PYTHONPATH
+command="$(basename "${BASH_SOURCE[0]//-/.}")"
if [ -z "$MKOSI_INTERPRETER" ]; then
# Note the check seems to be inverted here because the if branch is executed when the exit status is 0
fi
fi
-exec "$MKOSI_INTERPRETER" -B -m mkosi "$@"
+exec "$MKOSI_INTERPRETER" -B -m "$command" "$@"
--- /dev/null
+mkosi
\ No newline at end of file
--- /dev/null
+mkosi
\ No newline at end of file