From 401212334c7fd600750619a56d7c289359f24ef1 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Sat, 12 Oct 2013 14:42:23 +0200 Subject: [PATCH] Error if path contains whitespaces. Fixes #20 --- build-libssl.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-libssl.sh b/build-libssl.sh index 5394d57..041abc7 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -44,6 +44,13 @@ if [ ! -d "$DEVELOPER" ]; then exit 1 fi +case $CURRENTPATH in + *\ * ) + echo "Your path contains whitespaces, which is not supported by 'make install'." + exit 1 + ;; +esac + set -e if [ ! -e openssl-${VERSION}.tar.gz ]; then echo "Downloading openssl-${VERSION}.tar.gz"