Skip to content

Commit

Permalink
refactor(solr): readlink not available on MacOS, delete from update-f…
Browse files Browse the repository at this point in the history
…ields.sh IQSS#7903
  • Loading branch information
poikilotherm committed Oct 5, 2021
1 parent 7cb28a9 commit 2d7dc63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions conf/solr/8.8.1/update-fields.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ done
shift $((OPTIND-1))

# User overrideable locations
SCHEMA=$(readlink -f "${SCHEMA:-${1:-schema.xml}}")
SCHEMA="${SCHEMA:-${1:-schema.xml}}"
SOURCE=${SOURCE:-${2:-"-"}}


Expand Down Expand Up @@ -135,8 +135,6 @@ if [ -z "${SOURCE}" ] || [ "${SOURCE}" = "-" ]; then
error "No data - either provide source file or piped input"
fi
else
# Always make the path absolute
SOURCE=$(readlink -f "${SOURCE}")
# Check the given file for readability and non-zero length
if [ ! -r "${SOURCE}" ] || [ ! -s "${SOURCE}" ]; then
error "Cannot read from or empty file ${SOURCE}"
Expand Down

0 comments on commit 2d7dc63

Please sign in to comment.