aboutsummaryrefslogtreecommitdiff
path: root/bin/rstar
blob: 27c71ca1d32d61f2af3daaaa93505e327e011f6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

BASEDIR="$(CDPATH="" cd -- "$(dirname -- "$0")/.." && pwd -P)"

export BASEDIR

main() {
	if ! command -v bash > /dev/null
	then
		printf "You need bash to run rstar\n" >&2
		exit 1
	fi

	exec bash "$BASEDIR/lib/main.bash" "$@"
}

main "$@"