From fab9d423c8dd8ad07d00fd44e9188754cb851520 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Thu, 19 Apr 2018 22:04:15 -0700 Subject: [PATCH] Fix source logic in installer --- extras/installer.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extras/installer.sh b/extras/installer.sh index a71d22d..8cfdfae 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -28,7 +28,10 @@ else # there is no 'else' because if this is being run plexupdate is either already installed # or they already have either wget or curl echo "Sourcing plexupdate-core using: $DOWNLOADER '${LIBRARY_URL}" - source <($DOWNLOADER "${LIBRARY_URL}") || echo "failed to source" && exit 1 + if ! source <($DOWNLOADER "${LIBRARY_URL}"); then + echo "failed to source" + exit 1 + fi echo "Source succeeded" fi