Skip to content
This repository was archived by the owner on Feb 13, 2021. It is now read-only.

Commit 0804995

Browse files
authored
Merge pull request #6 from ahelal/fix/avm_cli
Fix relative path issue
2 parents 69fc397 + c5f4c4e commit 0804995

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

avm/avm.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,12 @@ case $1 in
165165
export ANSIBLE_LABEL_0="$2"
166166
shift ;;
167167
-r|--requirements)
168-
export PYTHON_REQUIREMENTS_0="$2"
168+
export PYTHON_REQUIREMENTS_0
169+
if [ "${2}" != "${2#/}" ]; then
170+
PYTHON_REQUIREMENTS_0="${2}"
171+
else
172+
PYTHON_REQUIREMENTS_0="$(pwd)/${2}"
173+
fi
169174
shift ;;
170175
-h|--help)
171176
print_install_help;;

0 commit comments

Comments
 (0)