remove outdated bin

This commit is contained in:
Daylin Morgan 2025-02-11 17:54:06 -06:00
parent b6d3741175
commit 170d21dfd8
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -1,32 +0,0 @@
#!/usr/bin/env bash
set -a
source "$HOME/.config/restic/othalan.env"
declare -a flags
# if [[ "$1" == "backup" ]]; then
# flags=(
# "--exclude-file" "$HOME/.config/restic/excludes.txt"
# "--exclude-file" "$HOME/.conda/environments.txt"
# )
# fi
#
# echo "${flags[@]}"
# assumes subcommand always comes first
case $1 in
-*) restic "$@" && exit "$?";;
backup) cmd=backup; shift;;
*) cmd="$1"; shift;;
esac
if [[ $cmd == "backup" ]]; then
flags=(
"--exclude-file" "$HOME/.config/restic/excludes.txt"
"--exclude-file" "$HOME/.conda/environments.txt"
)
fi
# echo restic "$@" "${flags[@]}"
restic "$cmd" "${flags[@]}" "$@"