This commit is contained in:
Nikos Papadakis 2023-02-18 14:52:59 +02:00
parent 1b9e34b141
commit ad21aaa9e5
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02

View file

@ -11,4 +11,15 @@ add target:
fi
done
remove target:
#!/bin/env sh
target={{trim_end_matches(target, '/')}}
find $target -mindepth 1 | while read p
do
t=~/`echo -n $p | sed "s/^$target\///" | sed s/dot-/./g`
if ( test -L $t ); then
rm $t && echo "rm $t"
fi
done
# vim: set ft=sh :