From 2b4a5508ab6bcce175def73ca52e99f91cbc6a4f Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 7 Nov 2021 05:56:01 +0100 Subject: [PATCH] config: validate symlinks in bootstrap --- .config/yadm/bootstrap | 5 +++++ .sane | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) delete mode 120000 .sane diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 656c5f0..72a473e 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -30,6 +30,11 @@ test -d "/etc/yadm" || sy clone section "Software" link() { test -e "$2" || ln -sv "$@"; } +mkdir -p .config/audacity +find $HOME -maxdepth 1 -type l -exec file {} + | + grep '.local/share' | grep broken | + sed 's/.* //' | xargs mkdir -p + link python3 /usr/bin/python link fd /usr/bin/fdfind link bat /usr/bin/batcat diff --git a/.sane b/.sane deleted file mode 120000 index 21b515b..0000000 --- a/.sane +++ /dev/null @@ -1 +0,0 @@ -.local/share/sane \ No newline at end of file