From 78b7eaec1472d1a468cbfb75e8c3e1e87c34cbb3 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 16 Feb 2014 22:02:34 -0800 Subject: [PATCH] install.sh: fix git-browser installation On some platforms, a trailing '/' in a cp -r source list means copy the contents of rather than the directory itself. This is incorrect for the git-browser installation. Remove the trailing '/' from 'JSON/' and 'js.lib/' so the directories themselves are properly copied to the git-browser installation on all platforms. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b91d018..3bf9fab 100755 --- a/install.sh +++ b/install.sh @@ -154,7 +154,7 @@ if [ ! -f git-browser.git/git-browser.cgi ]; then fi mkdir -p "$cfg_webroot"/git-browser "$cfg_cgiroot" (cd git-browser.git && cp git-browser.cgi "$cfg_cgiroot" \ - && cp -r *.html *.js *.css js.lib/ JSON/ "$cfg_webroot"/git-browser) + && cp -r *.html *.js *.css js.lib JSON "$cfg_webroot"/git-browser) ln -sf "$cfg_webroot/git-browser/JSON" "$cfg_cgiroot" cat >"$cfg_cgiroot"/git-browser.conf <