From 09b7bdcd5a82ea2e2bb60041638edb346fe1ed10 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 15 Apr 2015 13:34:34 +0200 Subject: [PATCH] Added sudo-less install for cygwin builds --- .ci/install-libcsptr.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.ci/install-libcsptr.sh b/.ci/install-libcsptr.sh index fd0f471..79b4d4d 100755 --- a/.ci/install-libcsptr.sh +++ b/.ci/install-libcsptr.sh @@ -9,6 +9,12 @@ git clone --branch ${tag} --depth 1 ${repo} dependencies/libcsptr && ./autogen.sh && ./configure --prefix=/usr && make && - sudo make install + { + if command -v sudo; then + sudo make install + else + make install + fi + } ) rm -Rf dependencies