Commit 70c1b7b7 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

edit_requirements_txt_for_downstream_in_subdir: Fix github-specific code

parent dcdd27aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -663,7 +663,7 @@ function edit_requirements_txt_for_downstream_in_subdir()
  local REQ_TXT_TO_EDIT
  local TMP_FOR_COMPARISON="zzztmp-ci-support-req.txt"

  PRJ_NAME="$(basename "$GITHUB_REPOSITORY")"
  PRJ_NAME="$(get_proj_name)"
  REQ_TXT_TO_EDIT="${1:-requirements.txt}"
  cp "$REQ_TXT_TO_EDIT" "$TMP_FOR_COMPARISON"
  sed -i "/egg=$PRJ_NAME/ c git+file://$(readlink -f ..)#egg=$PRJ_NAME" "$REQ_TXT_TO_EDIT"