Skip to content
Snippets Groups Projects
Commit 570e7e64 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Fixed bug getting dependencies when the line starts without spaces

parent c5f9159e
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@
##Install dependencies
#- apt -y install iri-dep1-dev iri-dep2-dev
# Read dependencies from CMakeLists.txt
- DEP=( $(grep -P '[^#]\s+SET\(CPACK_DEBIAN_PACKAGE_DEPENDS\s+"' CMakeLists.txt) ) || echo " Package iri-$PACKAGE_NAME-dev without dependencies"
- DEP=( $(grep -P '\s+SET\(CPACK_DEBIAN_PACKAGE_DEPENDS\s+"' CMakeLists.txt | grep -v '#') ) || echo " Package iri-$PACKAGE_NAME-dev without dependencies"
- declare -a DEP
- |+
for ((i=1;i<${#DEP[@]};i+=3))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment