From 8f65bf7f62d9eeb147d1e7a916b564fff2ef34f9 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 19 Aug 2018 20:30:32 -0500 Subject: [PATCH] switch on travis --- package/linux/make_archive.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/linux/make_archive.sh b/package/linux/make_archive.sh index f99793ffc..a0ce20113 100755 --- a/package/linux/make_archive.sh +++ b/package/linux/make_archive.sh @@ -43,7 +43,11 @@ resourcefolder=$appfolder echo "Appfolder: $appfolder, archivefolder: $archivefolder" # Our slic3r dir and location of perl -SLIC3R_DIR="$(dirname $(readlink -F $0))/../../" +if [[ -z "$TRAVIS_BUILD_DIR" ]]; then + SLIC3R_DIR="${TRAVIS_BUILD_DIR}" +else + SLIC3R_DIR="./" +fi if [[ -d "${appfolder}" ]]; then echo "Deleting old working folder: ${appfolder}"