kibana/packages/elastic-safer-lodash-set/scripts/_get_lodash.sh

16 lines
409 B
Bash
Executable file

#!/usr/bin/env bash
# Elasticsearch B.V licenses this file to you under the MIT License.
# See `packages/elastic-safer-lodash-set/LICENSE` for more information.
clean_up () {
exit_code=$?
rm -fr .tmp
exit $exit_code
}
trap clean_up EXIT
# Get a temporary copy of the latest v4 lodash
rm -fr .tmp
npm install --no-fund --ignore-scripts --no-audit --loglevel error --prefix ./.tmp lodash@4 > /dev/null