From e8cab269b1b04ace8fe1165c68f0428b7caa5f45 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 1 Oct 2018 18:45:57 +0200 Subject: [PATCH] See #542: ensure install_os_dependencies.sh is runnable from anywhere --- api/install_os_dependencies.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/install_os_dependencies.sh b/api/install_os_dependencies.sh index 91f3f7c3f..77ebc4a79 100755 --- a/api/install_os_dependencies.sh +++ b/api/install_os_dependencies.sh @@ -1,6 +1,8 @@ -#!/bin/bash +#!/bin/bash -ex -OS_REQUIREMENTS_FILENAME="requirements.apt" +script_path=$(dirname "$(realpath $0)") + +OS_REQUIREMENTS_FILENAME="$script_path/requirements.apt" # Handle call with wrong command function wrong_command()