From 391ae62a0d2627ad4cbb6a03a18ca6eddda13c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3n=20Castillo?= Date: Fri, 29 Apr 2016 22:02:49 -0430 Subject: [PATCH] Allow dependency installation from any location --- .../utility/install_os_dependencies.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh b/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh index aea9dec45..6e13c7033 100755 --- a/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh +++ b/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh @@ -1,6 +1,7 @@ #!/bin/bash -OS_REQUIREMENTS_FILENAME="requirements.apt" +WORK_DIR="$(dirname "$0")" +OS_REQUIREMENTS_FILENAME="$WORK_DIR/requirements.apt" # Handle call with wrong command function wrong_command()