From 99235e8a6fe8aa8129e1cdceeaf20bdae60dd4f7 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Tue, 15 Dec 2015 15:10:07 +0000 Subject: [PATCH] #1109 and #1041. Reinstate recursive cygwin bash --- jenkins_build.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/jenkins_build.sh b/jenkins_build.sh index b9d40d39..49db9857 100755 --- a/jenkins_build.sh +++ b/jenkins_build.sh @@ -174,12 +174,18 @@ case "$build" in /usr/local/bin/exiv2 -v -V result=$? else - export RECURSIVE=1 - # don't recursively invoke bash as this dies on Windows 10. - # simply call the script again in the same bash session - # /cygdrive/c/cygwin64/bin/bash.exe -c "cd $PWD ; ./$0" - ./$0 - result=$? + if [ "$x64" == true ]; then + export RECURSIVE=1 + # /cygdrive/c/cygwin64/bin/bash.exe -c "cd $PWD ; ./$0" + cd "$PWD" ; ./$0 + result=$? + fi + if [ "$Win32" == true ]; then + export RECURSIVE=1 + # /cygdrive/c/cygwin/bin/bash.exe -c "cd $PWD ; ./$0" + cd "$PWD" ; ./$0 + result=$? + fi fi ;;