diff --git a/amo-version.sh b/amo-version.sh index 6f7bab3..bae6e6a 100755 --- a/amo-version.sh +++ b/amo-version.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env sh +#! /usr/bin/env bash curl -s "https://addons.mozilla.org/api/v5/addons/addon/$1/versions/?page_size=1" | jq '.results | .[0] | .file | .url' | tr -d '"' diff --git a/build.sh b/build.sh index d2eba28..a381914 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash set -e SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) diff --git a/clean.sh b/clean.sh index 1fbbe33..9e16d66 100755 --- a/clean.sh +++ b/clean.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env sh +#! /usr/bin/env bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPT_DIR" || exit 1 diff --git a/config.sh b/config.sh index 6bcd091..0266225 100755 --- a/config.sh +++ b/config.sh @@ -1,3 +1,4 @@ +#! /usr/bin/env bash ## If you need to use a different JVM, JDK, or other utility from # build.sh, set it in this file, for example: diff --git a/daily.sh b/daily.sh index 0813b9b..ee581ac 100755 --- a/daily.sh +++ b/daily.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env sh +#! /usr/bin/env bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPT_DIR" || exit 1 diff --git a/release.sh b/release.sh index 919f6bf..57f49dc 100755 --- a/release.sh +++ b/release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPT_DIR" || exit 1 diff --git a/sign.sh b/sign.sh index adadb5d..fc1a6ee 100755 --- a/sign.sh +++ b/sign.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPT_DIR" || exit 1 diff --git a/unsigned.sh b/unsigned.sh index f95a981..4a5d7da 100755 --- a/unsigned.sh +++ b/unsigned.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#! /usr/bin/env bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPT_DIR" || exit 1