From 79d5ffae79b2e879be8ec71f9b65f037981da331 Mon Sep 17 00:00:00 2001 From: Adam Simpson Date: Sun, 2 Aug 2020 22:32:54 -0400 Subject: [PATCH] chore: fix travis again --- .travis.yml | 4 ++-- Cargo.toml | 2 +- build.sh | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2d79295..b7f7d58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ script: - ./build.sh before_deploy: - - mv ./target/release/oscar "oscar-$TARGET." + - mv ./target/"${TARGET}"/release/oscar "oscar-${TARGET}." deploy: token: @@ -36,7 +36,7 @@ deploy: on: tags: true provider: releases - skip_cleanup: true + cleanup: false branches: only: diff --git a/Cargo.toml b/Cargo.toml index 919a3c0..ffaa61a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oscar" -version = "0.1.10" +version = "0.1.11" authors = ["Adam Simpson "] edition = "2018" description = "A CLI application to download videos from PBS. Ideally run in cron or another scheduler." diff --git a/build.sh b/build.sh index 30af753..b69ed47 100755 --- a/build.sh +++ b/build.sh @@ -1,13 +1,13 @@ #!/bin/sh -rustup target add "$TARGET" +rustup target add "${TARGET}" # Download the Raspberry Pi cross-compilation toolchain if needed -if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ] +if [ "${TARGET}" = "arm-unknown-linux-gnueabihf" ] then git clone --depth=1 https://github.com/raspberrypi/tools.git /tmp/tools; - export PATH=/tmp/tools/arm-bcm2708/arm-linux-gnueabihf/bin:$PATH; + export PATH=/tmp/tools/arm-bcm2708/arm-linux-gnueabihf/bin:${PATH}; export CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc fi -cargo build --target="$TARGET" --release +cargo build --target="${TARGET}" --release