Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grab-solr.sh #467

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tools/grab-solr.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
#
# Script to grab Solr and embed in priv dir. This script assumes it is
# being called from root dir or tools dir.
Expand Down Expand Up @@ -38,12 +38,14 @@ download()
wget --no-check-certificate --progress=dot:mega $1
elif which curl > /dev/null; then
curl --insecure --progress-bar -O $1
elif which fetch > /dev/null: then
fetch --no-verify-peer $1
fi
}

get_solr()
{
if [[ -z ${SOLR_PKG_DIR+x} ]]
if [ -z ${SOLR_PKG_DIR+x} ]
then
if [ -e $TMP_FILE ]; then
echo "Using cached copy of Solr $TMP_FILE"
Expand Down