Fix source logic in installer

This commit is contained in:
Alex Malinovich 2018-04-19 22:04:15 -07:00
commit fab9d423c8

View file

@ -28,7 +28,10 @@ else
# there is no 'else' because if this is being run plexupdate is either already installed # there is no 'else' because if this is being run plexupdate is either already installed
# or they already have either wget or curl # or they already have either wget or curl
echo "Sourcing plexupdate-core using: $DOWNLOADER '${LIBRARY_URL}" 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" echo "Source succeeded"
fi fi