From c4d037472f3979c62bfd8d42e1aca0d1031dfd26 Mon Sep 17 00:00:00 2001 From: Vladimir Chalupecky Date: Thu, 14 Dec 2017 11:04:19 +0100 Subject: [PATCH] travis: remove unnecessary sudo when installing OpenBLAS at Linux --- .travis/linux/OpenBLAS/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis/linux/OpenBLAS/install.sh b/.travis/linux/OpenBLAS/install.sh index 244948fc..29c6b1c5 100644 --- a/.travis/linux/OpenBLAS/install.sh +++ b/.travis/linux/OpenBLAS/install.sh @@ -15,22 +15,22 @@ if [ -e ${CACHE_DIR}/last_commit_id ]; then if [ "$LAST_COMMIT" != "$CACHED_COMMIT" ]; then echo "Cache Directory $CACHE_DIR has stale commit" # if commit is different, delete the cache - rm -rf ${CACHE_DIR} + sudo rm -rf ${CACHE_DIR} fi fi if [ ! -e ${CACHE_DIR}/last_commit_id ]; then # Clear cache. - rm -rf ${CACHE_DIR} + sudo rm -rf ${CACHE_DIR} # cache generation echo "Building cache at $CACHE_DIR" mkdir ${CACHE_DIR} - sudo git clone --depth=1 git://github.com/xianyi/OpenBLAS + git clone --depth=1 git://github.com/xianyi/OpenBLAS pushd OpenBLAS echo OpenBLAS version:$(git rev-parse HEAD) - sudo make FC=gfortran &> /dev/null && sudo make PREFIX=${CACHE_DIR} install + make FC=gfortran &> /dev/null && make PREFIX=${CACHE_DIR} install echo $(git rev-parse HEAD) > ${CACHE_DIR}/last_commit_id popd fi