config/yadm/bootstrap: auto-elevate symlink

This commit is contained in:
xeruf 2021-11-26 21:32:06 +01:00
parent 2bdd76cb9a
commit 4477be2f02
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ test -d "/etc/yadm" || sy clone
## Software
section "Software"
link() { test -e "$2" || ln -sv "$@"; }
link() {
test -e "$2" || $(checkacess -w "$2" || echo sudo) ln -sv "$@"
}
mkdir -p .config/audacity
find $HOME -maxdepth 1 -type l -exec file {} + |