Skip to content

Commit

Permalink
Fix xdg-open issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Aug 8, 2018
1 parent 2ba76de commit 50308f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ matrix:
- libgdal-dev
- graphviz
- os: osx
osx_image: xcode9.3
osx_image: xcode8.3
language: generic
env:
- TRAVIS_PYTHON_VERSION=3.6.1
Expand Down
11 changes: 10 additions & 1 deletion tools/travis/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions tools/travis/script.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -ex
set -e

section "Script section"

Expand Down Expand Up @@ -34,4 +34,4 @@ cd $NX_SOURCE

section_end "Script section"

set +ex
set +e

0 comments on commit 50308f2

Please sign in to comment.