config/yadm/bootstrap: auto-elevate symlink
This commit is contained in:
parent
2bdd76cb9a
commit
4477be2f02
|
@ -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 {} + |
|
||||
|
|
Loading…
Reference in New Issue