Skip to content

Instantly share code, notes, and snippets.

@sirikon
Last active September 8, 2024 13:16
Show Gist options
  • Save sirikon/adc18ba5588423179fad61c06e006bbc to your computer and use it in GitHub Desktop.
Save sirikon/adc18ba5588423179fad61c06e006bbc to your computer and use it in GitHub Desktop.
#!/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