Files
git.taskfile.build/install
T

61 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
repository=https://taskfile.build
# ls -1 bin | sed '/install/d'
scripts=(
activate-venv
backup-env-files
build-image
clean-git-folder
commit-git-folder
commit-with-llm
copy-env
create-env
create-symlink
create-symlink-files
edit-env
ensure-directory
get-pass-from-keepass
init-dotenv-dir
list-env
load-dotenv-from-keepass
load-dotenv-from-pass
load-env
login-docker
log-warning
ls-git-folder
open-url-with-delay
open-with-os
push-git-folder
remove-env
remove-venv
rename-env
reset-git-folder
restore-env-files
save-dotenv-to-keepass
save-dotenv-to-pass
save-pass-to-keepass
show-env
stage-git-folder
status-git-folder
template-dotenv
update-submodule
update-with-llm
)
install_dir='/usr/local/bin'
if [[ "$1" == '--user' ]]; then
install_dir="$HOME/.local/bin"
mkdir -p "$install_dir"
echo "Installing scripts in $install_dir"
fi
for script in "${scripts[@]}"; do
echo "Installing $script ..."
curl -L "$repository/bin/$script" -o "$install_dir/$script"
chmod +x "$install_dir/$script"
done