QuantumLearning/scripts/start_jupyter.sh

10 lines
253 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
if [[ $# -gt 0 && "$1" =~ ^[0-9]+$ ]]; then
exec bash "$ROOT_DIR/scripts/app.sh" start --port "$1"
fi
exec bash "$ROOT_DIR/scripts/app.sh" start "$@"