lib/Tools/node
author wenzelm
Mon, 28 Aug 2023 13:00:24 +0200
changeset 78623 b96b73a79da3
parent 75285 2b64d5657592
permissions -rwxr-xr-x
more robust: "hostname" command might be absent, notably on Arch Linux (and other systemd-based distributions);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: run the Node.js framework within the Isabelle environment

if [ -z "$ISABELLE_VSCODIUM_ELECTRON" ]; then
  echo '*** Undefined $ISABELLE_VSCODIUM_ELECTRON: missing "vscodium" component'
  exit 2
else
  export ELECTRON_RUN_AS_NODE=1
  exec "$ISABELLE_VSCODIUM_ELECTRON" "$@"
fi