Commit b2f326d5 authored by Pablo Panero's avatar Pablo Panero
Browse files

patch: fix oauth patch script to find pipenv site-packages

parent 5b71acdc
#!/usr/bin/env bash
rm -f /usr/lib/python2.7/site-packages/invenio_oauthclient/contrib/cern.py
cp /code/scripts/patch/cern.py /usr/lib/python2.7/site-packages/invenio_oauthclient/contrib/cern.py
\ No newline at end of file
location=$(pipenv run pip show invenio-oauthclient | grep Location | awk '{print $2}')
rm -f ${location}/invenio_oauthclient/contrib/cern.py
cp /${WORKING_DIR}/src/scripts/patch/cern.py ${location}/invenio_oauthclient/contrib/cern.py
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment