install.fairie/.local/share/chezmoi/home/dot_local/bin/executable_task

11 lines
239 B
Bash

#!/usr/bin/env bash
if command -v task > /dev/null; then
if [ -f Taskfile.yml ]; then
task $@
else
task --taskfile "$HOME/.local/src/shared-common/common/Taskfile.yml" $@
fi
else
echo 'task is not installed.' && exit 1
fi