kopia lustrzana https://github.com/jupyterhub/repo2docker
fix cd to python dir in freeze.bash
- cd was missing, instead the directory was being printed - readlink doesn't exist on BSDpull/158/head
rodzic
3c6c19e1c5
commit
3290f93512
|
@ -5,7 +5,14 @@ set -euo pipefail
|
|||
# Does the same for requirements2.txt to requirements2.frozen.txt...
|
||||
|
||||
# cd to the directory where the freeze script is located
|
||||
dirname "$(readlink -f "$0")"
|
||||
if [[ ! -z "$(which realpath 2>/dev/null)" ]]; then
|
||||
realpath=realpath
|
||||
else
|
||||
realpath="readlink -f"
|
||||
fi
|
||||
|
||||
cd $(dirname "$($realpath "$0")")
|
||||
|
||||
|
||||
function freeze-requirements {
|
||||
# Freeze a requirements file $2 into a frozen requirements file $3
|
||||
|
|
Ładowanie…
Reference in New Issue