diff options
Diffstat (limited to 'ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp')
-rwxr-xr-x | ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp b/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp index dc5c556b4..7955bef15 100755 --- a/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp +++ b/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp @@ -8,4 +8,12 @@ if [ ! -e "$base/runshell" ]; then echo "** cannot find $base/runshell" >&2 exit 1 fi + +# If this is a standalone app, set a variable that git-annex can use to +# install itself. +if [ -e "$base/bin/git-annex" ]; then + GIT_ANNEX_OSX_WEBAPP_PROGRAM="$base/bin/git-annex" + export OSX_GIT_ANNEX_APP_PROGRAM +fi + "$base/runshell" git-annex webapp "$@" |