mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 02:38:30 -06:00
13 lines
367 B
Bash
13 lines
367 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
real_bin="$(dirname "$0")/.cadcraft-nightly/cadcraft"
|
|
if [ "${1:-}" = "--version" ] || [ "${1:-}" = "-V" ]; then
|
|
exec "$real_bin" "$@"
|
|
fi
|
|
if [ "${CADCRAFT_CONFIG_DIR+x}" != "x" ]; then
|
|
profile_base="${XDG_DATA_HOME:-${HOME:?HOME is required}/.local/share}"
|
|
export CADCRAFT_CONFIG_DIR="$profile_base/cadcraft-nightly"
|
|
fi
|
|
exec "$real_bin" "$@"
|