summaryrefslogtreecommitdiff
path: root/config/services/git/shell-commands/repo/src/remove_command.sh
blob: b45406f6c9babbb14e909cacde590da2e3fac9a2 (plain)
1
2
3
4
5
6
7
8
9
10
path=$(realpath "${args[path]}")

check-realpath "$path"

if [[ $(is-git-dir "$path") ]]
then
    rm --recursive "$path"
else
    rm --dir "$path"
fi