improve install of task

This commit is contained in:
Andrew Hurley 2022-10-27 01:02:05 +11:00
parent d87db96fc2
commit 4c8f76e9dd
1 changed files with 6 additions and 2 deletions

8
gotask/install.sh Normal file → Executable file
View File

@ -1,5 +1,9 @@
#!/bin/bash
mkdir -p ~/.local/bin
stat ~/.local/bin/task > /dev/null || cp task ~/.local/bin
stat /etc/bash_completion.d/task.bash || sudo cp task.bash /etc/bash_completion.d/task.bash
if [[ ! -f ~/.local/bin/task ]]; then
cp task ~/.local/bin
fi
if [[ ! -f /etc/bash_completion.d/task.bash ]]; then
sudo cp task.bash /etc/bash_completion.d/task.bash
fi