install.fairie/home/dot_local/bin/executable_task

12 lines
322 B
Text
Raw Normal View History

#!/usr/bin/env bash
if command -v task > /dev/null && [ -n "$PATH_TASK" ]; then
if [ -f Taskfile.yml ]; then
$PATH_TASK $*
else
2023-08-01 00:05:52 -07:00
$PATH_TASK --taskfile "${XDG_DATA_HOME:-$HOME/.local/share}/shared-common/common/Taskfile.yml" $@
fi
else
echo 'task is not installed or PATH_TASK is not defined.' && exit 1
fi