Last active
September 8, 2024 13:16
-
-
Save sirikon/adc18ba5588423179fad61c06e006bbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
TASK_VERSION="3.38.0" | |
TASK_INSTALLER="https://raw.githubusercontent.com/go-task/task/b259edeb65e24f28c41604b9819869aca082d3b6/install-task.sh" | |
cd "$(dirname "${BASH_SOURCE[0]}")" | |
task_bin="$(pwd)/.taskw/${TASK_VERSION}/task" | |
if [ ! -f "${task_bin}" ]; then | |
sh -c "$(curl "${TASK_INSTALLER}")" \ | |
-- -d -b "$(dirname "${task_bin}")" "v${TASK_VERSION}" | |
fi | |
exec "${task_bin}" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment