improve scripts

This commit is contained in:
2024-05-23 11:30:18 -04:00
parent 50087596d0
commit 257b4060c0
11 changed files with 72 additions and 68 deletions

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
if compgen -G "/home/default/syncthing/*/.stversions/*" > /dev/null; then
rm -rf /home/default/syncthing/*/.stversions/*
echo "deleted all .stversions"
else
echo "no .stversions to remove"
fi