diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2018-08-03 16:24:09 -0500 |
---|---|---|
committer | Jarrod Millman <jarrod.millman@gmail.com> | 2018-08-08 01:58:33 -0700 |
commit | 50308f2db248dd90230cecce52913e123fc43054 (patch) | |
tree | ea0a6f310928873f6a42d20a0bf4e094153c49e8 /tools | |
parent | 2ba76de1ff165cc5f93ea3ea4017e32cff3a00bd (diff) | |
download | networkx-50308f2db248dd90230cecce52913e123fc43054.tar.gz |
Fix xdg-open issue
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/travis/linux_install.sh | 11 | ||||
-rwxr-xr-x | tools/travis/script.sh | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/tools/travis/linux_install.sh b/tools/travis/linux_install.sh index 6119e1ab..821a1154 100755 --- a/tools/travis/linux_install.sh +++ b/tools/travis/linux_install.sh @@ -12,7 +12,16 @@ if [[ "${OPTIONAL_DEPS}" == 1 ]]; then export C_INCLUDE_PATH=/usr/include/gdal # needed for view_graphviz and default_opener - alias xdg-open="file" + DIR=~/.local/bin + export PATH=$DIR:$PATH + mkdir -p $DIR + FILE=$DIR/xdg-open + cat <<EOF >$FILE +#!/bin/sh + +echo $1 +EOF + chmod +x $FILE fi diff --git a/tools/travis/script.sh b/tools/travis/script.sh index b2f9f06b..108ffe89 100755 --- a/tools/travis/script.sh +++ b/tools/travis/script.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -ex +set -e section "Script section" @@ -34,4 +34,4 @@ cd $NX_SOURCE section_end "Script section" -set +ex +set +e |