The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: Fix installing active_runtime.json on meson without DESTDIR

The -u setting for bash reported an error if DESTDIR is not set.

The syntax ${A-foo} returns the content of A if set, or the default "foo" if not,
"foo" being the empty string in this case.

+2 -2
+2 -2
src/xrt/targets/openxr/install_active_runtime.sh
··· 4 4 # 5 5 # Used by the Meson build only. 6 6 7 - sysconfdir="$DESTDIR"/"$1" 7 + sysconfdir="${DESTDIR-}"/"$1" 8 8 manifest="$2" 9 9 xrversion="$3" 10 10 11 11 runtime_path="$sysconfdir"/xdg/openxr/"$xrversion"/active_runtime.json 12 12 13 13 mkdir -p "$sysconfdir"/xdg/openxr/"$xrversion" 14 - ln -s "$manifest" "$runtime_path" 14 + ln -sf "$manifest" "$runtime_path"