Files
helder/scripts/run.sh
T

13 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: scripts/run.sh [project-path]
set -euo pipefail
# Resolve the project before env.sh changes the working directory.
if [[ $# -gt 0 ]]; then
export HELDER_PROJECT="$(cd "$1" && pwd)"
fi
source "$(dirname "$0")/env.sh"
swift build
exec "$(swift build --show-bin-path)/Helder"