From 97220ce2bbcd94a37c63fb1d57564a99bef0d60d Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Tue, 2 Apr 2019 21:19:29 +0800 Subject: [PATCH] fix(travis-install.sh): working directory --- travis-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/travis-install.sh b/travis-install.sh index 63d5aa2a1..687e75f77 100755 --- a/travis-install.sh +++ b/travis-install.sh @@ -1,5 +1,7 @@ #!/bin/bash +cd "$(dirname "$0")" + dep_packages=( doxygen libboost-filesystem-dev @@ -27,7 +29,7 @@ if [[ -n "${RIME_PLUGINS}" ]]; then bash ./install-plugins.sh ${RIME_PLUGINS} for plugin_dir in plugins/*; do if [[ -e "${plugin_dir}/travis-install.sh" ]]; then - bash "${plugin_dir}/travis-install.sh" + (cd "${plugin_dir}"; bash ./travis-install.sh) fi done fi