See #542: ensure install_os_dependencies.sh is runnable from anywhere

This commit is contained in:
Eliot Berriot 2018-10-01 18:45:57 +02:00
parent 62c98b2386
commit e8cab269b1
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 4 additions and 2 deletions

View File

@ -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()